Class BasemapDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.carto.business.BasemapDAO
-
- All Implemented Interfaces:
IBasemapDAO
public final class BasemapDAO extends java.lang.Object implements IBasemapDAO
This class provides Data Access methods for Basemap objects
-
-
Constructor Summary
Constructors Constructor Description BasemapDAO()
-
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(Basemap basemap, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<Basemap>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<Basemap>selectBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the basemap objects and returns them as a listjava.util.List<Basemap>selectBasemapsListByIds(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.ReferenceListselectBasemapsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the basemap objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the basemap objects and returns them as a listvoidstore(Basemap basemap, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Basemap basemap, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIBasemapDAO- Parameters:
basemap- instance of the Basemap object to insertplugin- the Plugin
-
load
public java.util.Optional<Basemap> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIBasemapDAO- Parameters:
nKey- The identifier of the basemapplugin- the Plugin- Returns:
- The instance of the basemap
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIBasemapDAO- Parameters:
nKey- The identifier of the Basemap to deleteplugin- the Plugin
-
store
public void store(Basemap basemap, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIBasemapDAO- Parameters:
basemap- the reference of the Basemapplugin- the Plugin
-
selectBasemapsList
public java.util.List<Basemap> selectBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the basemap objects and returns them as a list- Specified by:
selectBasemapsListin interfaceIBasemapDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the basemap objects
-
selectIdBasemapsList
public java.util.List<java.lang.Integer> selectIdBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the basemap objects and returns them as a list- Specified by:
selectIdBasemapsListin interfaceIBasemapDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the basemap objects
-
selectBasemapsReferenceList
public fr.paris.lutece.util.ReferenceList selectBasemapsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the basemap objects and returns them as a referenceList- Specified by:
selectBasemapsReferenceListin interfaceIBasemapDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the basemap objects
-
selectBasemapsListByIds
public java.util.List<Basemap> selectBasemapsListByIds(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:
selectBasemapsListByIdsin interfaceIBasemapDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
-