@Repository public class ReferentDaoImpl extends Object implements ReferentDao
ReferentDaoImpl implements the ReferentDao interface.| Constructor and Description |
|---|
ReferentDaoImpl() |
| 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 |
setDataSource(DataSource dataSource)
Set the data source
|
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. |
@Autowired public void setDataSource(DataSource dataSource)
dataSource - Data sourcepublic Referent findById(Long id) throws org.springframework.dao.DataAccessException
Referent instance by its IDfindById in interface ReferentDaoid - ID of referentReferent instance corresponding to given IDorg.springframework.dao.DataAccessExceptionpublic Referent findByResId(Integer resId) throws org.springframework.dao.DataAccessException
Referent instance by the resident IDfindByResId in interface ReferentDaoresId - Resident IDReferent corresponding to given resident ID valueorg.springframework.dao.DataAccessExceptionpublic List<Referent> findReferentsByEnfantId(Long id) throws org.springframework.dao.DataAccessException
Referent instances for the given child IDfindReferentsByEnfantId in interface ReferentDaoid - Child IDReferent instances for the given child IDorg.springframework.dao.DataAccessException@Transactional public Referent create(Referent referent) throws org.springframework.dao.DataAccessException
Referentcreate in interface ReferentDaoreferent - Referent instance that needs to be persistedReferent instanceorg.springframework.dao.DataAccessException@Transactional public void updateReferent(Referent referent) throws org.springframework.dao.DataAccessException
Referent instanceupdateReferent in interface ReferentDaoreferent - Referent instance with updated detailsorg.springframework.dao.DataAccessException@Transactional public final void createReferentBatch(List<Referent> referentsList)
Referent instances.createReferentBatch in interface ReferentDaoreferentsList - List of Referent instances that have to be created@Transactional public final void updateReferentBatch(List<Referent> referentsList)
Referent instances by bulk.updateReferentBatch in interface ReferentDaoreferentsList - List of Referent instances that have to be updatedCopyright © 2019 City of Paris. All rights reserved.