Class UserAcceptedDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.termofservice.business.UserAcceptedDAO
-
- All Implemented Interfaces:
IUserAcceptedDAO
public final class UserAcceptedDAO extends java.lang.Object implements IUserAcceptedDAO
This class provides Data Access methods for UserAccepted objects
-
-
Constructor Summary
Constructors Constructor Description UserAcceptedDAO()
-
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 tablebooleanexistsAcceptedVersionEntry(int nVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Checks whether the specified version entry has been accepted at least once.voidinsert(UserAccepted userAccepted, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<UserAccepted>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<UserAccepted>loadByGuid(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<UserAccepted>loadByGuidAndIdEntryAndVersion(java.lang.String strGuid, int nIdEntry, int nVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<java.lang.Integer>selectIdUserAcceptedsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the userAccepted objects and returns them as a listjava.util.List<UserAccepted>selectUserAcceptedsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the userAccepted objects and returns them as a listjava.util.List<UserAccepted>selectUserAcceptedsListByIds(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.ReferenceListselectUserAcceptedsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the userAccepted objects and returns them as a referenceListvoidstore(UserAccepted userAccepted, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(UserAccepted userAccepted, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIUserAcceptedDAO- Parameters:
userAccepted- instance of the UserAccepted object to insertplugin- the Plugin
-
load
public java.util.Optional<UserAccepted> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIUserAcceptedDAO- Parameters:
nKey- The identifier of the userAcceptedplugin- the Plugin- Returns:
- The instance of the userAccepted
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIUserAcceptedDAO- Parameters:
nKey- The identifier of the UserAccepted to deleteplugin- the Plugin
-
store
public void store(UserAccepted userAccepted, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIUserAcceptedDAO- Parameters:
userAccepted- the reference of the UserAcceptedplugin- the Plugin
-
selectUserAcceptedsList
public java.util.List<UserAccepted> selectUserAcceptedsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the userAccepted objects and returns them as a list- Specified by:
selectUserAcceptedsListin interfaceIUserAcceptedDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the userAccepted objects
-
selectIdUserAcceptedsList
public java.util.List<java.lang.Integer> selectIdUserAcceptedsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the userAccepted objects and returns them as a list- Specified by:
selectIdUserAcceptedsListin interfaceIUserAcceptedDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the userAccepted objects
-
selectUserAcceptedsReferenceList
public fr.paris.lutece.util.ReferenceList selectUserAcceptedsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the userAccepted objects and returns them as a referenceList- Specified by:
selectUserAcceptedsReferenceListin interfaceIUserAcceptedDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the userAccepted objects
-
selectUserAcceptedsListByIds
public java.util.List<UserAccepted> selectUserAcceptedsListByIds(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:
selectUserAcceptedsListByIdsin interfaceIUserAcceptedDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
loadByGuid
public java.util.Optional<UserAccepted> loadByGuid(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUserAcceptedDAOLoad the data from the table- Specified by:
loadByGuidin interfaceIUserAcceptedDAOplugin- the Plugin- Returns:
- The instance of the userAccepted
-
loadByGuidAndIdEntryAndVersion
public java.util.Optional<UserAccepted> loadByGuidAndIdEntryAndVersion(java.lang.String strGuid, int nIdEntry, int nVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUserAcceptedDAOLoad the data from the table- Specified by:
loadByGuidAndIdEntryAndVersionin interfaceIUserAcceptedDAO- Parameters:
strGuid- The guidnIdEntry- The id entrynVersion- The version of entryplugin- the Plugin- Returns:
- The instance of the userAccepted
-
existsAcceptedVersionEntry
public boolean existsAcceptedVersionEntry(int nVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IUserAcceptedDAOChecks whether the specified version entry has been accepted at least once.- Specified by:
existsAcceptedVersionEntryin interfaceIUserAcceptedDAO- Returns:
trueif the version entry has already been accepted at least once,falseotherwise
-
-