Class UserAcceptedDAO

java.lang.Object
fr.paris.lutece.plugins.termofservice.business.UserAcceptedDAO
All Implemented Interfaces:
IUserAcceptedDAO

@ApplicationScoped public final class UserAcceptedDAO extends Object implements IUserAcceptedDAO
This class provides Data Access methods for UserAccepted objects
  • Constructor Details

    • UserAcceptedDAO

      public UserAcceptedDAO()
  • Method Details

    • insert

      public void insert(UserAccepted userAccepted, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IUserAcceptedDAO
      Parameters:
      userAccepted - instance of the UserAccepted object to insert
      plugin - the Plugin
    • load

      public Optional<UserAccepted> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IUserAcceptedDAO
      Parameters:
      nKey - The identifier of the userAccepted
      plugin - 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:
      delete in interface IUserAcceptedDAO
      Parameters:
      nKey - The identifier of the UserAccepted to delete
      plugin - the Plugin
    • store

      public void store(UserAccepted userAccepted, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IUserAcceptedDAO
      Parameters:
      userAccepted - the reference of the UserAccepted
      plugin - the Plugin
    • selectUserAcceptedsList

      public 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:
      selectUserAcceptedsList in interface IUserAcceptedDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the userAccepted objects
    • selectIdUserAcceptedsList

      public List<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:
      selectIdUserAcceptedsList in interface IUserAcceptedDAO
      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:
      selectUserAcceptedsReferenceList in interface IUserAcceptedDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the userAccepted objects
    • selectUserAcceptedsListByIds

      public List<UserAccepted> selectUserAcceptedsListByIds(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:
      selectUserAcceptedsListByIds in interface IUserAcceptedDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • loadByGuid

      public Optional<UserAccepted> loadByGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IUserAcceptedDAO
      Load the data from the table
      Specified by:
      loadByGuid in interface IUserAcceptedDAO
      plugin - the Plugin
      Returns:
      The instance of the userAccepted
    • loadByGuidAndIdEntryAndVersion

      public Optional<UserAccepted> loadByGuidAndIdEntryAndVersion(String strGuid, int nIdEntry, int nVersion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IUserAcceptedDAO
      Load the data from the table
      Specified by:
      loadByGuidAndIdEntryAndVersion in interface IUserAcceptedDAO
      Parameters:
      strGuid - The guid
      nIdEntry - The id entry
      nVersion - The version of entry
      plugin - the Plugin
      Returns:
      The instance of the userAccepted