Class ReferenceHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Reference create​(Reference reference)
      Create an instance of the reference class
      static Reference findByPrimaryKey​(int nKey)
      Returns an instance of a reference whose identifier is specified in parameter
      static int findPrimaryKeyByName​(java.lang.String referenceName)
      Returns an instance of a reference whose identifier is specified in parameter
      static java.util.List<java.lang.Integer> getIdReferencesList()
      Load the id of all the reference objects and returns them as a list
      static java.util.List<Reference> getReferencesList()
      Load the data of all the reference objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getReferencesReferenceList()
      Load the data of all the reference objects and returns them as a referenceList
      static void remove​(int nKey)
      Remove the reference whose identifier is specified in parameter
      static Reference update​(Reference reference)
      Update of the reference 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 Reference create​(Reference reference)
        Create an instance of the reference class
        Parameters:
        reference - The instance of the Reference which contains the informations to store
        Returns:
        The instance of reference which has been created with its primary key.
      • update

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

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

        public static Reference findByPrimaryKey​(int nKey)
        Returns an instance of a reference whose identifier is specified in parameter
        Parameters:
        nKey - The reference primary key
        Returns:
        an instance of Reference
      • findPrimaryKeyByName

        public static int findPrimaryKeyByName​(java.lang.String referenceName)
        Returns an instance of a reference whose identifier is specified in parameter
        Parameters:
        nKey - The reference primary key
        Returns:
        an instance of Reference
      • getReferencesList

        public static java.util.List<Reference> getReferencesList()
        Load the data of all the reference objects and returns them as a list
        Returns:
        the list which contains the data of all the reference objects
      • getIdReferencesList

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

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