Class MapTemplateDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.carto.business.MapTemplateDAO
-
- All Implemented Interfaces:
IMapTemplateDAO
public final class MapTemplateDAO extends java.lang.Object implements IMapTemplateDAO
This class provides Data Access methods for MapTemplate objects
-
-
Constructor Summary
Constructors Constructor Description MapTemplateDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(MapTemplate mapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<MapTemplate>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<MapTemplate>loadXpageFO(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<java.lang.Integer>selectIdMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the mapTemplate objects and returns them as a listjava.util.List<MapTemplate>selectMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the mapTemplate objects and returns them as a listjava.util.List<MapTemplate>selectMapTemplatesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectMapTemplatesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the mapTemplate objects and returns them as a referenceListvoidstore(MapTemplate mapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(MapTemplate mapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIMapTemplateDAO- Parameters:
mapTemplate- instance of the MapTemplate object to insertplugin- the Plugin
-
load
public java.util.Optional<MapTemplate> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIMapTemplateDAO- Parameters:
nKey- The identifier of the mapTemplateplugin- the Plugin- Returns:
- The instance of the mapTemplate
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIMapTemplateDAO- Parameters:
nKey- The identifier of the MapTemplate to deleteplugin- the Plugin
-
store
public void store(MapTemplate mapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIMapTemplateDAO- Parameters:
mapTemplate- the reference of the MapTemplateplugin- the Plugin
-
selectMapTemplatesList
public java.util.List<MapTemplate> selectMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the mapTemplate objects and returns them as a list- Specified by:
selectMapTemplatesListin interfaceIMapTemplateDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the mapTemplate objects
-
selectIdMapTemplatesList
public java.util.List<java.lang.Integer> selectIdMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the mapTemplate objects and returns them as a list- Specified by:
selectIdMapTemplatesListin interfaceIMapTemplateDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the mapTemplate objects
-
selectMapTemplatesReferenceList
public fr.paris.lutece.util.ReferenceList selectMapTemplatesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the mapTemplate objects and returns them as a referenceList- Specified by:
selectMapTemplatesReferenceListin interfaceIMapTemplateDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the mapTemplate objects
-
selectMapTemplatesListByIds
public java.util.List<MapTemplate> selectMapTemplatesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Specified by:
selectMapTemplatesListByIdsin interfaceIMapTemplateDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
loadXpageFO
public java.util.Optional<MapTemplate> loadXpageFO(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadXpageFOin interfaceIMapTemplateDAO- Returns:
- The instance of the mapTemplate
-
-