public interface EnfantDao
EnfantDao interface.| 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 |
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
|
Enfant findById(Long id) throws org.springframework.dao.DataAccessException
Enfant instance by its IDid - ID of enfantEnfant instance corresponding to given IDorg.springframework.dao.DataAccessExceptionEnfant findByBenCode(String benCode) throws org.springframework.dao.DataAccessException
Enfant instance by the given BEN codebenCode - BEN codeEnfant instance corresponding to given BEN codeorg.springframework.dao.DataAccessExceptionList<Enfant> rechercheEnfant(String nom, Date date) throws ParseException, org.springframework.dao.DataAccessException
Enfant instances by the given name and date of birthnom - Namedate - Date of birthEnfant instances corresponding to the given name and date of birthParseExceptionorg.springframework.dao.DataAccessExceptionEnfant create(Enfant enfant) throws org.springframework.dao.DataAccessException
EnfantList<Enfant> getListEnfantReferer(Long referentId) throws org.springframework.dao.DataAccessException
Enfant instances which corresponds to the given referent IDreferentId - Referent IDEnfantorg.springframework.dao.DataAccessException - DataAccessExceptionvoid update(Enfant enfant) throws org.springframework.dao.DataAccessException
Enfant instanceenfant - Enfant instance containing updated details that have to be persisted for an existing enfant roworg.springframework.dao.DataAccessExceptionvoid updateCarteStatutByEnfantId(Long enfantId, Long statut) throws org.springframework.dao.DataAccessException
enfantId - Enfant IDstatut - Card statusorg.springframework.dao.DataAccessExceptionlong updateEnfantsForExtraction(List<Long> enfantIds) throws org.springframework.dao.DataAccessException
enfantIds - List of enfant IDorg.springframework.dao.DataAccessExceptionvoid batchInsert(List<Enfant> enfants)
Enfant listenfants - List of Enfant instances to be insertedvoid batchUpdate(List<Enfant> enfants)
Enfant listenfants - List of Enfant instances to be updatedList<Enfant> findByBenCodes(List<String> benCodes)
Enfant instances for the given list of BEN codes.benCodes - List of BEN codesEnfant instances for the given list of BEN codesvoid resetUpdatedByLastImportFlag()
Copyright © 2019 City of Paris. All rights reserved.