@Service public class ReferentService extends Object implements Serializable
ReferentService exposes functions required for managing the 'coupon_reponse_referent' table.| Constructor and Description |
|---|
ReferentService() |
| Modifier and Type | Method and Description |
|---|---|
Referent |
createReferent(Referent referent)
Persist an given instance of
Referent |
void |
createReferentBatch(List<Referent> referentsList)
Create referents using the list of given
Referent instances. |
List<Referent> |
findReferentsByEnfantId(Long id)
Get the list of
Referent instances for the given child ID |
Referent |
getReferentById(Long referentId)
Find a
Referent instance which corresponds to the given ID |
Referent |
getReferentByResId(String resId)
Find a
Referent instance which corresponds to the given RESID |
void |
updateReferent(Referent referent)
Update an existing referent with details from provided
Referent instance |
void |
updateReferentBatch(List<Referent> referentsList)
Update the list of
Referent instances by bulk. |
public Referent createReferent(Referent referent) throws org.springframework.dao.DataAccessException
Referentpublic Referent getReferentById(Long referentId) throws org.springframework.dao.DataAccessException
Referent instance which corresponds to the given IDpublic Referent getReferentByResId(String resId) throws org.springframework.dao.DataAccessException
Referent instance which corresponds to the given RESIDresId - RESID valueReferent instance which corresponds to the given RESID valueorg.springframework.dao.DataAccessExceptionpublic void updateReferent(Referent referent) throws org.springframework.dao.DataAccessException
Referent instancereferent - Referent instance with updated detailsorg.springframework.dao.DataAccessExceptionpublic List<Referent> findReferentsByEnfantId(Long id)
Referent instances for the given child IDid - Child IDReferent instances for the given child IDorg.springframework.dao.DataAccessException@Transactional public final void createReferentBatch(List<Referent> referentsList)
Referent instances.referentsList - List of Referent instances that have to be createdCopyright © 2019 City of Paris. All rights reserved.