Class DataLayerMapTemplateDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.carto.business.DataLayerMapTemplateDAO
-
- All Implemented Interfaces:
IDataLayerMapTemplateDAO
public final class DataLayerMapTemplateDAO extends java.lang.Object implements IDataLayerMapTemplateDAO
This class provides Data Access methods for DataLayerMapTemplate objects
-
-
Constructor Summary
Constructors Constructor Description DataLayerMapTemplateDAO()
-
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(DataLayerMapTemplate dataLayerMapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<DataLayerMapTemplate>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<DataLayerMapTemplate>loadByDataLayerId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey)Load the data from id data layerjava.util.Optional<DataLayerMapTemplate>loadByIdMapIdLayer(int nMapKey, int nDataLayerKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<DataLayer>selectDataLayerListByMapTemplateId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey)Load all the DataLayer attached to the MapTemplate idjava.util.List<DataLayer>selectDataLayerListByMapTemplateIdAndSearchable(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey, boolean isSearchableByOther)Load all the DataLayer attached to the MapTemplate idjava.util.List<DataLayerMapTemplate>selectDataLayerMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dataLayerMapTemplate objects and returns them as a listjava.util.List<DataLayerMapTemplate>selectDataLayerMapTemplatesListByIds(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.ReferenceListselectDataLayerMapTemplatesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dataLayerMapTemplate objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdDataLayerMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the dataLayerMapTemplate objects and returns them as a listvoidstore(DataLayerMapTemplate dataLayerMapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(DataLayerMapTemplate dataLayerMapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIDataLayerMapTemplateDAO- Parameters:
dataLayerMapTemplate- instance of the DataLayerMapTemplate object to insertplugin- the Plugin
-
load
public java.util.Optional<DataLayerMapTemplate> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIDataLayerMapTemplateDAO- Parameters:
nKey- The identifier of the dataLayerMapTemplateplugin- the Plugin- Returns:
- The instance of the dataLayerMapTemplate
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIDataLayerMapTemplateDAO- Parameters:
nKey- The identifier of the DataLayerMapTemplate to deleteplugin- the Plugin
-
store
public void store(DataLayerMapTemplate dataLayerMapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIDataLayerMapTemplateDAO- Parameters:
dataLayerMapTemplate- the reference of the DataLayerMapTemplateplugin- the Plugin
-
selectDataLayerMapTemplatesList
public java.util.List<DataLayerMapTemplate> selectDataLayerMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dataLayerMapTemplate objects and returns them as a list- Specified by:
selectDataLayerMapTemplatesListin interfaceIDataLayerMapTemplateDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the dataLayerMapTemplate objects
-
selectIdDataLayerMapTemplatesList
public java.util.List<java.lang.Integer> selectIdDataLayerMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the dataLayerMapTemplate objects and returns them as a list- Specified by:
selectIdDataLayerMapTemplatesListin interfaceIDataLayerMapTemplateDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the dataLayerMapTemplate objects
-
selectDataLayerMapTemplatesReferenceList
public fr.paris.lutece.util.ReferenceList selectDataLayerMapTemplatesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dataLayerMapTemplate objects and returns them as a referenceList- Specified by:
selectDataLayerMapTemplatesReferenceListin interfaceIDataLayerMapTemplateDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the dataLayerMapTemplate objects
-
selectDataLayerMapTemplatesListByIds
public java.util.List<DataLayerMapTemplate> selectDataLayerMapTemplatesListByIds(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:
selectDataLayerMapTemplatesListByIdsin interfaceIDataLayerMapTemplateDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectDataLayerListByMapTemplateId
public java.util.List<DataLayer> selectDataLayerListByMapTemplateId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey)
Load all the DataLayer attached to the MapTemplate id- Specified by:
selectDataLayerListByMapTemplateIdin interfaceIDataLayerMapTemplateDAO- Returns:
- The list of DataLayer
-
selectDataLayerListByMapTemplateIdAndSearchable
public java.util.List<DataLayer> selectDataLayerListByMapTemplateIdAndSearchable(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey, boolean isSearchableByOther)
Load all the DataLayer attached to the MapTemplate id- Specified by:
selectDataLayerListByMapTemplateIdAndSearchablein interfaceIDataLayerMapTemplateDAOisSearchableByOther- : is the map viewable by others- Returns:
- The list of DataLayer
-
loadByIdMapIdLayer
public java.util.Optional<DataLayerMapTemplate> loadByIdMapIdLayer(int nMapKey, int nDataLayerKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadByIdMapIdLayerin interfaceIDataLayerMapTemplateDAO- Parameters:
nMapKey- The identifier of the MapTemplatenDataLayerKey- The identifier of the dataLayerplugin- the Plugin- Returns:
- The instance of the dataLayerMapTemplate
-
loadByDataLayerId
public java.util.Optional<DataLayerMapTemplate> loadByDataLayerId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey)
Load the data from id data layer- Specified by:
loadByDataLayerIdin interfaceIDataLayerMapTemplateDAO- Parameters:
_plugin- the PluginnKey- The od of the datalayer- Returns:
- The instance of the dataLayerMapTemplate
-
-