Class TemporaryCodeDAO

  • All Implemented Interfaces:
    ITemporaryCodeDAO

    public final class TemporaryCodeDAO
    extends java.lang.Object
    implements ITemporaryCodeDAO
    This class provides Data Access methods for TemporaryCode objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(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 table
      java.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 name
      java.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 name
      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)
      Load the data from the table by user id and code
      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
      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
      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
      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
      void store​(TemporaryCode temporaryCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemporaryCodeDAO

        public TemporaryCodeDAO()
    • 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:
        insert in interface ITemporaryCodeDAO
        Parameters:
        temporaryCode - instance of the TemporaryCode object to insert
        plugin - 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:
        load in interface ITemporaryCodeDAO
        Parameters:
        nKey - The identifier of the temporaryCode
        plugin - 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:
        delete in interface ITemporaryCodeDAO
        Parameters:
        nKey - The identifier of the TemporaryCode to delete
        plugin - the Plugin
      • store

        public void store​(TemporaryCode temporaryCode,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ITemporaryCodeDAO
        Parameters:
        temporaryCode - the reference of the TemporaryCode
        plugin - 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:
        selectTemporaryCodesList in interface ITemporaryCodeDAO
        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:
        selectIdTemporaryCodesList in interface ITemporaryCodeDAO
        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:
        selectTemporaryCodesReferenceList in interface ITemporaryCodeDAO
        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:
        selectTemporaryCodesListByIds in interface ITemporaryCodeDAO
        listIds - 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: ITemporaryCodeDAO
        Load the data from the table by user id and code
        Specified by:
        loadByUserIdAndCode in interface ITemporaryCodeDAO
        Parameters:
        strUserId - the user id
        strCode - the code
        plugin - 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: ITemporaryCodeDAO
        Load temporary code by code and action name
        Specified by:
        loadByCodeAndActionName in interface ITemporaryCodeDAO
        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: ITemporaryCodeDAO
        Load temporary code bu user id and action name
        Specified by:
        loadByUserAndActionName in interface ITemporaryCodeDAO
        Returns:
        The instance of temporary code