@Repository public class EnfantReferentDaoImpl extends Object implements EnfantReferentDao
EnfantReferentDaoImpl implements the EnfantReferentDao interface.| Constructor and Description |
|---|
EnfantReferentDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
EnfantReferent |
create(EnfantReferent enfantReferent)
Persist a given instance of
EnfantReferent |
List<EnfantReferent> |
findByBenCode(String benCode)
Find the list of
EnfantReferent instances for the given BEN code |
List<EnfantReferent> |
findByIdEnfant(Long idEnfant)
Find the list of
EnfantReferent instances for the given enfant ID |
EnfantReferent |
findByIdEnfantIdReferent(Long idEnfant,
Long idReferent)
Find a
EnfantReferent instance by the given enfant and referent IDs |
List<EnfantReferent> |
findByIdReferent(Long idReferent)
Find the list of
EnfantReferent instances for the given referent ID |
void |
setDataSource(DataSource dataSource)
Set the data source
|
void |
updateStatutEnvoi(Long idEnfant,
Long idReferent,
String dateEnvoi)
Update the mail delivery status
|
@Autowired public void setDataSource(DataSource dataSource)
dataSource - Data sourcepublic List<EnfantReferent> findByIdReferent(Long idReferent) throws org.springframework.dao.DataAccessException
EnfantReferent instances for the given referent IDfindByIdReferent in interface EnfantReferentDaoidReferent - Referent IDEnfantReferent instances for the given referent IDorg.springframework.dao.DataAccessExceptionpublic List<EnfantReferent> findByIdEnfant(Long idEnfant) throws org.springframework.dao.DataAccessException
EnfantReferent instances for the given enfant IDfindByIdEnfant in interface EnfantReferentDaoidEnfant - Enfant IDEnfantReferent instances for the given enfant IDorg.springframework.dao.DataAccessExceptionpublic List<EnfantReferent> findByBenCode(String benCode) throws org.springframework.dao.DataAccessException
EnfantReferent instances for the given BEN codefindByBenCode in interface EnfantReferentDaobenCode - BEN code valueEnfantReferent instances for the given BEN codeorg.springframework.dao.DataAccessException@Transactional public EnfantReferent create(EnfantReferent enfantReferent) throws org.springframework.dao.DataAccessException
EnfantReferentcreate in interface EnfantReferentDaoenfantReferent - EnfantReferent instance that needs to be persistedEnfantReferent instanceorg.springframework.dao.DataAccessExceptionpublic EnfantReferent findByIdEnfantIdReferent(Long idEnfant, Long idReferent) throws org.springframework.dao.DataAccessException
EnfantReferent instance by the given enfant and referent IDsfindByIdEnfantIdReferent in interface EnfantReferentDaoidEnfant - Enfant IDidReferent - Referent IDEnfantReferent instance corresponding to the given enfant and referent IDsorg.springframework.dao.DataAccessException@Transactional public void updateStatutEnvoi(Long idEnfant, Long idReferent, String dateEnvoi) throws org.springframework.dao.DataAccessException
updateStatutEnvoi in interface EnfantReferentDaoidEnfant - Enfant IDidReferent - Referent IDdateEnvoi - Date at which mail has been sentorg.springframework.dao.DataAccessExceptionCopyright © 2019 City of Paris. All rights reserved.