fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl
Class LocalDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalDAO
All Implemented Interfaces:
ILocalDAO, Serializable

public class LocalDAO
extends Object
implements ILocalDAO, Serializable

Implementation of ILocalDAO

See Also:
Serialized Form

Constructor Summary
LocalDAO()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDAO

public LocalDAO()
Method Detail

findLocalByIdAndTypeAndAudience

public LocalDTO findLocalByIdAndTypeAndAudience(Long id,
                                                Long type,
                                                Long idAudience)
Description copied from interface: ILocalDAO
Find a LocalDTO by its id and type

Specified by:
findLocalByIdAndTypeAndAudience in interface ILocalDAO
Parameters:
id - the id to find
type - the type
idAudience - the id audience
Returns:
the corresponding LocalDTO

findTitleByIdAndTypeAndAudience

public String findTitleByIdAndTypeAndAudience(Long id,
                                              Long type,
                                              Long idAudience)
Description copied from interface: ILocalDAO
Find a title by its id and type

Specified by:
findTitleByIdAndTypeAndAudience in interface ILocalDAO
Parameters:
id - the id to find
type - the type
idAudience - the id audience
Returns:
the title of corresponding LocalDTO

findAll

public List<LocalDTO> findAll()
Description copied from interface: ILocalDAO
Find all LocalDTO

Specified by:
findAll in interface ILocalDAO
Returns:
list of all LocalDTO

insert

public Long insert(LocalDTO local,
                   boolean addIdToBreadcrumb)
Description copied from interface: ILocalDAO
Create a LocalDTO

Specified by:
insert in interface ILocalDAO
Parameters:
local - the LocalDTO to create
addIdToBreadcrumb - true if id must be id to breadcrumb, false otherwise
Returns:
the id of the new LocalDTO

delete

public void delete(String idLocal)
Description copied from interface: ILocalDAO
Delete a LocalDTO

Specified by:
delete in interface ILocalDAO
Parameters:
idLocal - the id to delete

store

public void store(LocalDTO localDTO,
                  boolean addIdToBreadcrumb)
Description copied from interface: ILocalDAO
Update a LocalDTO

Specified by:
store in interface ILocalDAO
Parameters:
localDTO - the LocalDTO to update
addIdToBreadcrumb - true if id must be id to breadcrumb, false otherwise

findXmlById

public String findXmlById(Long id)
Description copied from interface: ILocalDAO
Find xml content of LocalDTO by its id

Specified by:
findXmlById in interface ILocalDAO
Parameters:
id - the id
Returns:
the xml

findLastCardsByAudience

public List<LocalDTO> findLastCardsByAudience(Long audienceId)
Description copied from interface: ILocalDAO
Find 10 last fiches for display

Specified by:
findLastCardsByAudience in interface ILocalDAO
Parameters:
audienceId - the audience to check
Returns:
list of corresponding LocalDTO

findAllByAudienceId

public List<LocalDTO> findAllByAudienceId(Long audienceId)
Description copied from interface: ILocalDAO
Find all LocalDTO by audience id

Specified by:
findAllByAudienceId in interface ILocalDAO
Parameters:
audienceId - the audience id
Returns:
all LocalDTO in audience id


Copyright © 2013 Mairie de Paris. All Rights Reserved.