public class LocalDAO extends Object implements ILocalDAO, Serializable
ILocalDAO
Constructor and Description |
---|
LocalDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String idLocal)
Delete a
LocalDTO |
List<LocalDTO> |
findAll()
Find all
LocalDTO |
List<LocalDTO> |
findAllByAudienceId(Long audienceId)
Find all
LocalDTO by audience id |
List<LocalDTO> |
findLastCardsByAudience(Long audienceId)
Find 10 last fiches for display
|
LocalDTO |
findLocalByIdAndTypeAndAudience(Long id,
Long type,
Long idAudience)
Find a
LocalDTO by its id and type |
String |
findTitleByIdAndTypeAndAudience(Long id,
Long type,
Long idAudience)
Find a title by its id and type
|
String |
findXmlById(Long id)
Find xml content of
LocalDTO by its id |
Long |
insert(LocalDTO local,
boolean addIdToBreadcrumb)
Create a
LocalDTO |
void |
store(LocalDTO localDTO,
boolean addIdToBreadcrumb)
Update a
LocalDTO |
public LocalDTO findLocalByIdAndTypeAndAudience(Long id, Long type, Long idAudience)
ILocalDAO
LocalDTO
by its id and typefindLocalByIdAndTypeAndAudience
in interface ILocalDAO
id
- the id to findtype
- the typeidAudience
- the id audienceLocalDTO
public String findTitleByIdAndTypeAndAudience(Long id, Long type, Long idAudience)
ILocalDAO
findTitleByIdAndTypeAndAudience
in interface ILocalDAO
id
- the id to findtype
- the typeidAudience
- the id audienceLocalDTO
public List<LocalDTO> findAll()
ILocalDAO
LocalDTO
public Long insert(LocalDTO local, boolean addIdToBreadcrumb)
ILocalDAO
LocalDTO
public void delete(String idLocal)
ILocalDAO
LocalDTO
public void store(LocalDTO localDTO, boolean addIdToBreadcrumb)
ILocalDAO
LocalDTO
public String findXmlById(Long id)
ILocalDAO
LocalDTO
by its idfindXmlById
in interface ILocalDAO
id
- the idpublic List<LocalDTO> findLastCardsByAudience(Long audienceId)
ILocalDAO
findLastCardsByAudience
in interface ILocalDAO
audienceId
- the audience to checkLocalDTO
Copyright © 2017 City of Paris. All rights reserved.