@Service public class EnfantService extends Object implements Serializable
EnfantService exposes functions required for managing the 'coupon_reponse_enfant' table.| Constructor and Description |
|---|
EnfantService() |
| Modifier and Type | Method and Description |
|---|---|
Enfant |
createEnfant(Enfant enfant)
Persist a given instance of
Enfant |
List<Enfant> |
findByBenCodes(List<String> benCodes)
Find the list of
Enfant instances for the given list of BEN codes. |
Enfant |
getEnfantByBenCode(String benCode)
Find a
Enfant instance which corresponds to the given BEN code |
Enfant |
getEnfantById(Long enfantId)
Find a
Enfant instance which corresponds to the given ID |
List<Enfant> |
getListEnfantReferer(Long referentId)
Find a list of
Enfant instances which corresponds to the given referent ID |
void |
insertBatch(List<Enfant> enfants)
Bulk insert for list of
Enfant instances. |
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 |
updateBatch(List<Enfant> enfants)
Bulk update for list of
Enfant instances. |
void |
updateCarteStatutByEnfantId(Long enfantId,
Long statut)
Update status of the card for the given enfant ID
|
void |
updateEnfant(Enfant enfant)
Update the details of an existing enfant row with the given
Enfant instance |
long |
updateEnfantsForExtraction(List<Long> enfantIds)
Update the extraction status of rows in 'coupon_reponse_enfant' table for a given list of ID
|
public Enfant createEnfant(Enfant enfant) throws org.springframework.dao.DataAccessException
Enfantpublic Enfant getEnfantById(Long enfantId) throws org.springframework.dao.DataAccessException
Enfant instance which corresponds to the given IDpublic Enfant getEnfantByBenCode(String benCode) throws org.springframework.dao.DataAccessException
Enfant instance which corresponds to the given BEN codepublic void updateEnfant(Enfant enfant) throws org.springframework.dao.DataAccessException
Enfant instanceenfant - Enfant instanceorg.springframework.dao.DataAccessExceptionpublic List<Enfant> getListEnfantReferer(Long referentId) throws org.springframework.dao.DataAccessException
Enfant instances which corresponds to the given referent IDreferentId - Referent IDEnfantorg.springframework.dao.DataAccessException - DataAccessExceptionpublic List<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.DataAccessExceptionpublic void updateCarteStatutByEnfantId(Long enfantId, Long statut) throws org.springframework.dao.DataAccessException
enfantId - Enfant IDstatut - Card statusorg.springframework.dao.DataAccessException@Transactional public long updateEnfantsForExtraction(List<Long> enfantIds) throws org.springframework.dao.DataAccessException
enfantIds - List of enfant IDorg.springframework.dao.DataAccessException@Transactional public void insertBatch(List<Enfant> enfants)
Enfant instances.enfants - List of Enfant instances@Transactional public void updateBatch(List<Enfant> enfants)
Enfant instances.enfants - List of Enfant instances@Transactional(readOnly=true) public List<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 codes@Transactional public void resetUpdatedByLastImportFlag()
Copyright © 2019 City of Paris. All rights reserved.