Class ReferenceHome

java.lang.Object
fr.paris.lutece.plugins.referencelist.business.ReferenceHome

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

    • 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(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 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 List<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