Class TemporaryCodeConfigDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.temporarycode.business.TemporaryCodeConfigDAO
-
- All Implemented Interfaces:
ITemporaryCodeConfigDAO
public final class TemporaryCodeConfigDAO extends java.lang.Object implements ITemporaryCodeConfigDAO
This class provides Data Access methods for TemporaryCodeConfig objects
-
-
Constructor Summary
Constructors Constructor Description TemporaryCodeConfigDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDefaultFlag(fr.paris.lutece.portal.service.plugin.Plugin plugin)Clear default flagvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(TemporaryCodeConfig temporaryCodeConfig, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<TemporaryCodeConfig>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<TemporaryCodeConfig>loadDefaultConfig(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load a dafult temporary code configjava.util.List<java.lang.Integer>selectIdTemporaryCodeConfigsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the temporaryCodeConfig objects and returns them as a listjava.util.List<TemporaryCodeConfig>selectTemporaryCodeConfigsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the temporaryCodeConfig objects and returns them as a listjava.util.List<TemporaryCodeConfig>selectTemporaryCodeConfigsListByIds(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.ReferenceListselectTemporaryCodeConfigsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the temporaryCodeConfig objects and returns them as a referenceListvoidstore(TemporaryCodeConfig temporaryCodeConfig, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(TemporaryCodeConfig temporaryCodeConfig, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceITemporaryCodeConfigDAO- Parameters:
temporaryCodeConfig- instance of the TemporaryCodeConfig object to insertplugin- the Plugin
-
load
public java.util.Optional<TemporaryCodeConfig> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceITemporaryCodeConfigDAO- Parameters:
nKey- The identifier of the temporaryCodeConfigplugin- the Plugin- Returns:
- The instance of the temporaryCodeConfig
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceITemporaryCodeConfigDAO- Parameters:
nKey- The identifier of the TemporaryCodeConfig to deleteplugin- the Plugin
-
store
public void store(TemporaryCodeConfig temporaryCodeConfig, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceITemporaryCodeConfigDAO- Parameters:
temporaryCodeConfig- the reference of the TemporaryCodeConfigplugin- the Plugin
-
selectTemporaryCodeConfigsList
public java.util.List<TemporaryCodeConfig> selectTemporaryCodeConfigsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the temporaryCodeConfig objects and returns them as a list- Specified by:
selectTemporaryCodeConfigsListin interfaceITemporaryCodeConfigDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the temporaryCodeConfig objects
-
selectIdTemporaryCodeConfigsList
public java.util.List<java.lang.Integer> selectIdTemporaryCodeConfigsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the temporaryCodeConfig objects and returns them as a list- Specified by:
selectIdTemporaryCodeConfigsListin interfaceITemporaryCodeConfigDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the temporaryCodeConfig objects
-
selectTemporaryCodeConfigsReferenceList
public fr.paris.lutece.util.ReferenceList selectTemporaryCodeConfigsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the temporaryCodeConfig objects and returns them as a referenceList- Specified by:
selectTemporaryCodeConfigsReferenceListin interfaceITemporaryCodeConfigDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the temporaryCodeConfig objects
-
selectTemporaryCodeConfigsListByIds
public java.util.List<TemporaryCodeConfig> selectTemporaryCodeConfigsListByIds(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:
selectTemporaryCodeConfigsListByIdsin interfaceITemporaryCodeConfigDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
clearDefaultFlag
public void clearDefaultFlag(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemporaryCodeConfigDAOClear default flag- Specified by:
clearDefaultFlagin interfaceITemporaryCodeConfigDAO
-
loadDefaultConfig
public java.util.Optional<TemporaryCodeConfig> loadDefaultConfig(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemporaryCodeConfigDAOLoad a dafult temporary code config- Specified by:
loadDefaultConfigin interfaceITemporaryCodeConfigDAO- Returns:
- The instance of the default temporary code config
-
-