Class DataLayerMapTemplateDAO
java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerMapTemplateDAO
- All Implemented Interfaces:
IDataLayerMapTemplateDAO
This class provides Data Access methods for DataLayerMapTemplate objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByDataLayerId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey) Load the data from id data layerloadByIdMapIdLayer(int nMapKey, int nDataLayerKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectDataLayerListByMapTemplateId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey) Load all the DataLayer attached to the MapTemplate idselectDataLayerListByMapTemplateIdAndSearchable(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey, boolean isSearchableByOther) Load all the DataLayer attached to the MapTemplate idselectDataLayerMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the dataLayerMapTemplate objects and returns them as a listselectDataLayerMapTemplatesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<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 referenceListselectIdDataLayerMapTemplatesList(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
-
Constructor Details
-
DataLayerMapTemplateDAO
public DataLayerMapTemplateDAO()
-
-
Method Details
-
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 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 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 List<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 List<DataLayerMapTemplate> selectDataLayerMapTemplatesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<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 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 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 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 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
-