public interface ReferentDao
ReferentDao interface.| Modifier and Type | Method and Description |
|---|---|
Referent |
create(Referent referent)
Persist a given instance of
Referent |
void |
createReferentBatch(List<Referent> referentsList)
Create referents using the list of given
Referent instances. |
Referent |
findById(Long id)
Find a
Referent instance by its ID |
Referent |
findByResId(Integer resId)
Find a
Referent instance by the resident ID |
List<Referent> |
findReferentsByEnfantId(Long id)
Get the list of
Referent instances for the given child ID |
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. |
Referent findById(Long id) throws org.springframework.dao.DataAccessException
Referent instance by its IDid - ID of referentReferent instance corresponding to given IDorg.springframework.dao.DataAccessExceptionReferent findByResId(Integer resId) throws org.springframework.dao.DataAccessException
Referent instance by the resident IDresId - Resident IDReferent corresponding to given resident ID valueorg.springframework.dao.DataAccessExceptionvoid updateReferent(Referent referent) throws org.springframework.dao.DataAccessException
Referent instancereferent - Referent instance with updated detailsorg.springframework.dao.DataAccessExceptionReferent create(Referent referent) throws org.springframework.dao.DataAccessException
ReferentList<Referent> findReferentsByEnfantId(Long id) throws org.springframework.dao.DataAccessException
Referent instances for the given child IDid - Child IDReferent instances for the given child IDorg.springframework.dao.DataAccessExceptionvoid createReferentBatch(List<Referent> referentsList)
Referent instances.referentsList - List of Referent instances that have to be createdCopyright © 2019 City of Paris. All rights reserved.