@Repository public class EnfantDaoImpl extends Object implements EnfantDao
EnfantDaoImpl implements the EnfantDao interface.| Constructor and Description |
|---|
EnfantDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchInsert(List<Enfant> enfants)
Bulk insert of
Enfant list |
void |
batchUpdate(List<Enfant> enfants)
Bulk update of
Enfant list |
Enfant |
create(Enfant enfant)
Persist a given instance of
Enfant |
Enfant |
findByBenCode(String benCode)
Find a
Enfant instance by the given BEN code |
List<Enfant> |
findByBenCodes(List<String> benCodes)
Find the list of
Enfant instances for the given list of BEN codes. |
Enfant |
findById(Long id)
Find a
Enfant instance by its ID |
List<Enfant> |
getListEnfantReferer(Long referentId)
Find a list of
Enfant instances which corresponds to the given referent ID |
List<Enfant> |
rechercheEnfant(String nom,
Date date)
Search for a list of
Enfant instances by the given name and date of birth |
void |
resetUpdatedByLastImportFlag()
Reset le flag updated_by_last_import for all the children
|
void |
setDataSource(DataSource dataSource)
Set the data source
|
void |
update(Enfant enfant)
Update the details of an existing enfant row with the details provided in the
Enfant instance |
void |
updateCarteStatutByEnfantId(Long enfantId,
Long statut)
Update status of the card for the given enfant ID
|
long |
updateEnfantsForExtraction(List<Long> enfantIds)
Update the extraction status of rows in 'coupon_reponse_enfant' table for a given list of enfant ID
|
@Autowired public void setDataSource(DataSource dataSource)
dataSource - Data sourcepublic Enfant findById(Long id) throws org.springframework.dao.DataAccessException
Enfant instance by its IDpublic Enfant findByBenCode(String benCode) throws org.springframework.dao.DataAccessException
Enfant instance by the given BEN codefindByBenCode in interface EnfantDaobenCode - BEN codeEnfant instance corresponding to given BEN codeorg.springframework.dao.DataAccessExceptionpublic List<Enfant> rechercheEnfant(String nom, Date date) throws org.springframework.dao.DataAccessException
Enfant instances by the given name and date of birthrechercheEnfant in interface EnfantDaonom - Namedate - Date of birthEnfant instances corresponding to the given name and date of birthorg.springframework.dao.DataAccessException@Transactional public Enfant create(Enfant enfant) throws org.springframework.dao.DataAccessException
Enfantpublic List<Enfant> getListEnfantReferer(Long referentId) throws org.springframework.dao.DataAccessException
Enfant instances which corresponds to the given referent IDgetListEnfantReferer in interface EnfantDaoreferentId - Referent IDEnfantorg.springframework.dao.DataAccessException - DataAccessException@Transactional public void update(Enfant enfant) throws org.springframework.dao.DataAccessException
Enfant instancepublic void updateCarteStatutByEnfantId(Long enfantId, Long statut) throws org.springframework.dao.DataAccessException
updateCarteStatutByEnfantId in interface EnfantDaoenfantId - Enfant IDstatut - Card statusorg.springframework.dao.DataAccessExceptionpublic long updateEnfantsForExtraction(List<Long> enfantIds) throws org.springframework.dao.DataAccessException
updateEnfantsForExtraction in interface EnfantDaoenfantIds - List of enfant IDorg.springframework.dao.DataAccessExceptionpublic void batchInsert(List<Enfant> enfants)
Enfant listbatchInsert in interface EnfantDaoenfants - List of Enfant instances to be insertedpublic void batchUpdate(List<Enfant> enfants)
Enfant listbatchUpdate in interface EnfantDaoenfants - List of Enfant instances to be updatedpublic List<Enfant> findByBenCodes(List<String> benCodes)
Enfant instances for the given list of BEN codes.findByBenCodes in interface EnfantDaobenCodes - List of BEN codesEnfant instances for the given list of BEN codespublic void resetUpdatedByLastImportFlag()
EnfantDaoresetUpdatedByLastImportFlag in interface EnfantDaoCopyright © 2019 City of Paris. All rights reserved.