Class DataLayerDAO
java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerDAO
- All Implemented Interfaces:
IDataLayerDAO
This class provides Data Access methods for DataLayer 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 a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadBySolrTag(String strSolrTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadDataLayerWithOptions(int nKey, boolean editable, boolean inclusion, boolean exclusion, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectDataLayersList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the dataLayer objects and returns them as a listselectDataLayersListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listselectDataLayersListWFS(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdMapTemplate) Load the data of all the dataLayer objects with WFS source and returns them as a listfr.paris.lutece.util.ReferenceListselectDataLayersReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the dataLayer objects and returns them as a referenceListselectIdDataLayersList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the dataLayer objects and returns them as a listvoidUpdate the record in the table
-
Constructor Details
-
DataLayerDAO
public DataLayerDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIDataLayerDAO- Parameters:
dataLayer- instance of the DataLayer object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIDataLayerDAO- Parameters:
nKey- The identifier of the dataLayerplugin- the Plugin- Returns:
- The instance of the dataLayer
-
loadBySolrTag
public Optional<DataLayer> loadBySolrTag(String strSolrTag, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadBySolrTagin interfaceIDataLayerDAO- Parameters:
strSolrTag- The identifier of the solrtagplugin- the Plugin- Returns:
- The instance of the dataLayer
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIDataLayerDAO- Parameters:
nKey- The identifier of the DataLayer to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIDataLayerDAO- Parameters:
dataLayer- the reference of the DataLayerplugin- the Plugin
-
selectDataLayersList
Load the data of all the dataLayer objects and returns them as a list- Specified by:
selectDataLayersListin interfaceIDataLayerDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the dataLayer objects
-
selectDataLayersListWFS
public List<DataLayer> selectDataLayersListWFS(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdMapTemplate) Load the data of all the dataLayer objects with WFS source and returns them as a list- Specified by:
selectDataLayersListWFSin interfaceIDataLayerDAO- Parameters:
plugin- the PluginnIdMapTemplate- the id of the map template- Returns:
- The list which contains the data of all the dataLayer objects
-
selectIdDataLayersList
Load the id of all the dataLayer objects and returns them as a list- Specified by:
selectIdDataLayersListin interfaceIDataLayerDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the dataLayer objects
-
selectDataLayersReferenceList
public fr.paris.lutece.util.ReferenceList selectDataLayersReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the dataLayer objects and returns them as a referenceList- Specified by:
selectDataLayersReferenceListin interfaceIDataLayerDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the dataLayer objects
-
selectDataLayersListByIds
public List<DataLayer> selectDataLayersListByIds(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:
selectDataLayersListByIdsin interfaceIDataLayerDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
loadDataLayerWithOptions
public Optional<DataLayer> loadDataLayerWithOptions(int nKey, boolean editable, boolean inclusion, boolean exclusion, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadDataLayerWithOptionsin interfaceIDataLayerDAO- Parameters:
nKey- The identifier of the mapeditable- dataLayer editableinclusion- dataLayer inclusionexclusion- dataLayer exclusionplugin- the Plugin- Returns:
- The instance of the dataLayer
-