Class TemporaryCodeHome


  • public final class TemporaryCodeHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for TemporaryCode objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TemporaryCode create​(TemporaryCode temporaryCode)
      Create an instance of the temporaryCode class
      static java.util.Optional<TemporaryCode> findByCodeAndActionName​(java.lang.String strCode, java.lang.String strActionName)
      Returns an instance of a temporaryCode by temporary code and action name
      static java.util.Optional<TemporaryCode> findByPrimaryKey​(int nKey)
      Returns an instance of a temporaryCode whose identifier is specified in parameter
      static java.util.Optional<TemporaryCode> findByUserIdAndActionName​(java.lang.String strUserId, java.lang.String strActionName)
      Returns an instance of a temporaryCode by user id and action name
      static java.util.Optional<TemporaryCode> findByUserIdAndCode​(java.lang.String strUserId, java.lang.String strCode, java.lang.String strActionName)
      Returns an instance of a temporaryCode by user id and code
      static java.util.List<java.lang.Integer> getIdTemporaryCodesList()
      Load the id of all the temporaryCode objects and returns them as a list
      static java.util.List<TemporaryCode> getTemporaryCodesList()
      Load the data of all the temporaryCode objects and returns them as a list
      static java.util.List<TemporaryCode> getTemporaryCodesListByIds​(java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getTemporaryCodesReferenceList()
      Load the data of all the temporaryCode objects and returns them as a referenceList
      static void remove​(int nKey)
      Remove the temporaryCode whose identifier is specified in parameter
      static TemporaryCode update​(TemporaryCode temporaryCode)
      Update of the temporaryCode which is specified in parameter
      • Methods inherited from class java.lang.Object

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

      • create

        public static TemporaryCode create​(TemporaryCode temporaryCode)
        Create an instance of the temporaryCode class
        Parameters:
        temporaryCode - The instance of the TemporaryCode which contains the informations to store
        Returns:
        The instance of temporaryCode which has been created with its primary key.
      • update

        public static TemporaryCode update​(TemporaryCode temporaryCode)
        Update of the temporaryCode which is specified in parameter
        Parameters:
        temporaryCode - The instance of the TemporaryCode which contains the data to store
        Returns:
        The instance of the temporaryCode which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the temporaryCode whose identifier is specified in parameter
        Parameters:
        nKey - The temporaryCode Id
      • findByPrimaryKey

        public static java.util.Optional<TemporaryCode> findByPrimaryKey​(int nKey)
        Returns an instance of a temporaryCode whose identifier is specified in parameter
        Parameters:
        nKey - The temporaryCode primary key
        Returns:
        an instance of TemporaryCode
      • findByUserIdAndCode

        public static java.util.Optional<TemporaryCode> findByUserIdAndCode​(java.lang.String strUserId,
                                                                            java.lang.String strCode,
                                                                            java.lang.String strActionName)
        Returns an instance of a temporaryCode by user id and code
        Parameters:
        strUserId - the user id
        strCode - the code
        strActionName - the action name
        Returns:
        an instance of TemporaryCode
      • findByUserIdAndActionName

        public static java.util.Optional<TemporaryCode> findByUserIdAndActionName​(java.lang.String strUserId,
                                                                                  java.lang.String strActionName)
        Returns an instance of a temporaryCode by user id and action name
        Parameters:
        strUserId - the user id
        strActionName - the action name
        Returns:
        an instance of TemporaryCode
      • findByCodeAndActionName

        public static java.util.Optional<TemporaryCode> findByCodeAndActionName​(java.lang.String strCode,
                                                                                java.lang.String strActionName)
        Returns an instance of a temporaryCode by temporary code and action name
        Parameters:
        strCode - the code
        strActionName - the action name
        Returns:
        an instance of TemporaryCode
      • getTemporaryCodesList

        public static java.util.List<TemporaryCode> getTemporaryCodesList()
        Load the data of all the temporaryCode objects and returns them as a list
        Returns:
        the list which contains the data of all the temporaryCode objects
      • getIdTemporaryCodesList

        public static java.util.List<java.lang.Integer> getIdTemporaryCodesList()
        Load the id of all the temporaryCode objects and returns them as a list
        Returns:
        the list which contains the id of all the temporaryCode objects
      • getTemporaryCodesReferenceList

        public static fr.paris.lutece.util.ReferenceList getTemporaryCodesReferenceList()
        Load the data of all the temporaryCode objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the temporaryCode objects
      • getTemporaryCodesListByIds

        public static java.util.List<TemporaryCode> getTemporaryCodesListByIds​(java.util.List<java.lang.Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Parameters:
        listIds - liste of ids
        Returns:
        the list which contains the data of all the avant objects