Class ReferenceItemHome

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

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

    • create

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

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

      public static void remove(int nKey)
      Remove the referenceItem whose identifier is specified in parameter and its translations
      Parameters:
      nKey - The referenceItem Id
    • findByPrimaryKey

      public static ReferenceItem findByPrimaryKey(int nKey)
      Returns an instance of a referenceItem whose identifier is specified in parameter
      Parameters:
      nKey - The referenceItem primary key
      Returns:
      an instance of ReferenceItem
    • getReferenceItemsList

      public static List<ReferenceItem> getReferenceItemsList(int nIdReference)
      Load the data of all the referenceItem objects and returns them as a list
      Returns:
      the list which contains the data of all the referenceItem objects
    • getAllReferenceItems

      public static List<ReferenceItem> getAllReferenceItems()
      Load the data of all the referenceItem objects and returns them as a list
      Returns:
      The list which contains the data of all the referenceItem objects
    • getReferenceItemsList

      public static List<ReferenceItem> getReferenceItemsList(int nIdReference, String strLang)
      Load the data of all the referenceItem objects and returns them as a list
      Parameters:
      nIdReference - the identifier of the reference
      strLang - the language
      Returns:
      the list which contains the data of all the referenceItem objects
    • getIdReferenceItemsList

      public static List<Integer> getIdReferenceItemsList()
      Load the id of all the referenceItem objects and returns them as a list
      Returns:
      the list which contains the id of all the referenceItem objects
    • getReferenceItemsReferenceList

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

      public static ReferenceItem findByReferenceName(int nIdReference, String itemName)
      Check if ReferenceItemName exist in Reference.
      Parameters:
      nIdReference - The reference id
      itemName - The Itemname of candidateItem
      Returns:
      an instance of ReferenceItem
    • compareReferenceItems

      public static CompareResult compareReferenceItems(List<ReferenceItem> candidateItems, int refId)