Class ReferenceItemHome


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

      • 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 java.util.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 java.util.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 java.util.List<ReferenceItem> getReferenceItemsList​(int nIdReference,
                                                                          java.lang.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 java.util.List<java.lang.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,
                                                        java.lang.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​(java.util.List<ReferenceItem> candidateItems,
                                                          int refId)