Class TemporaryCodeDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.temporarycode.business.TemporaryCodeDAO
-
- All Implemented Interfaces:
ITemporaryCodeDAO
public final class TemporaryCodeDAO extends java.lang.Object implements ITemporaryCodeDAO
This class provides Data Access methods for TemporaryCode objects
-
-
Constructor Summary
Constructors Constructor Description TemporaryCodeDAO()
-
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(TemporaryCode temporaryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<TemporaryCode>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<TemporaryCode>loadByCodeAndActionName(java.lang.String strCode, java.lang.String strActionName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load temporary code by code and action namejava.util.Optional<TemporaryCode>loadByUserAndActionName(java.lang.String strUserId, java.lang.String strActionName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load temporary code bu user id and action namejava.util.Optional<TemporaryCode>loadByUserIdAndCode(java.lang.String strUserId, java.lang.String strCode, java.lang.String strActionName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the table by user id and codejava.util.List<java.lang.Integer>selectIdTemporaryCodesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the temporaryCode objects and returns them as a listjava.util.List<TemporaryCode>selectTemporaryCodesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the temporaryCode objects and returns them as a listjava.util.List<TemporaryCode>selectTemporaryCodesListByIds(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.ReferenceListselectTemporaryCodesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the temporaryCode objects and returns them as a referenceListvoidstore(TemporaryCode temporaryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(TemporaryCode temporaryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceITemporaryCodeDAO- Parameters:
temporaryCode- instance of the TemporaryCode object to insertplugin- the Plugin
-
load
public java.util.Optional<TemporaryCode> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceITemporaryCodeDAO- Parameters:
nKey- The identifier of the temporaryCodeplugin- the Plugin- Returns:
- The instance of the temporaryCode
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceITemporaryCodeDAO- Parameters:
nKey- The identifier of the TemporaryCode to deleteplugin- the Plugin
-
store
public void store(TemporaryCode temporaryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceITemporaryCodeDAO- Parameters:
temporaryCode- the reference of the TemporaryCodeplugin- the Plugin
-
selectTemporaryCodesList
public java.util.List<TemporaryCode> selectTemporaryCodesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the temporaryCode objects and returns them as a list- Specified by:
selectTemporaryCodesListin interfaceITemporaryCodeDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the temporaryCode objects
-
selectIdTemporaryCodesList
public java.util.List<java.lang.Integer> selectIdTemporaryCodesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the temporaryCode objects and returns them as a list- Specified by:
selectIdTemporaryCodesListin interfaceITemporaryCodeDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the temporaryCode objects
-
selectTemporaryCodesReferenceList
public fr.paris.lutece.util.ReferenceList selectTemporaryCodesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the temporaryCode objects and returns them as a referenceList- Specified by:
selectTemporaryCodesReferenceListin interfaceITemporaryCodeDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the temporaryCode objects
-
selectTemporaryCodesListByIds
public java.util.List<TemporaryCode> selectTemporaryCodesListByIds(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:
selectTemporaryCodesListByIdsin interfaceITemporaryCodeDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
loadByUserIdAndCode
public java.util.Optional<TemporaryCode> loadByUserIdAndCode(java.lang.String strUserId, java.lang.String strCode, java.lang.String strActionName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemporaryCodeDAOLoad the data from the table by user id and code- Specified by:
loadByUserIdAndCodein interfaceITemporaryCodeDAO- Parameters:
strUserId- the user idstrCode- the codeplugin- the Plugin- Returns:
- The instance of the temporaryCode
-
loadByCodeAndActionName
public java.util.Optional<TemporaryCode> loadByCodeAndActionName(java.lang.String strCode, java.lang.String strActionName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemporaryCodeDAOLoad temporary code by code and action name- Specified by:
loadByCodeAndActionNamein interfaceITemporaryCodeDAO- Returns:
- The instance of temporary code
-
loadByUserAndActionName
public java.util.Optional<TemporaryCode> loadByUserAndActionName(java.lang.String strUserId, java.lang.String strActionName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemporaryCodeDAOLoad temporary code bu user id and action name- Specified by:
loadByUserAndActionNamein interfaceITemporaryCodeDAO- Returns:
- The instance of temporary code
-
-