Class ReferenceItemHome
- java.lang.Object
-
- fr.paris.lutece.plugins.referencelist.business.ReferenceItemHome
-
public final class ReferenceItemHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for ReferenceItem objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompareResultcompareReferenceItems(java.util.List<ReferenceItem> candidateItems, int refId)static ReferenceItemcreate(ReferenceItem referenceItem)Create an instance of the referenceItem classstatic ReferenceItemfindByPrimaryKey(int nKey)Returns an instance of a referenceItem whose identifier is specified in parameterstatic ReferenceItemfindByReferenceName(int nIdReference, java.lang.String itemName)Check if ReferenceItemName exist in Reference.static java.util.List<ReferenceItem>getAllReferenceItems()Load the data of all the referenceItem objects and returns them as a liststatic java.util.List<java.lang.Integer>getIdReferenceItemsList()Load the id of all the referenceItem objects and returns them as a liststatic java.util.List<ReferenceItem>getReferenceItemsList(int nIdReference)Load the data of all the referenceItem objects and returns them as a liststatic java.util.List<ReferenceItem>getReferenceItemsList(int nIdReference, java.lang.String strLang)Load the data of all the referenceItem objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetReferenceItemsReferenceList()Load the data of all the referenceItem objects and returns them as a referenceListstatic voidremove(int nKey)Remove the referenceItem whose identifier is specified in parameter and its translationsstatic ReferenceItemupdate(ReferenceItem referenceItem)Update of the referenceItem which is specified in parameter
-
-
-
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 referencestrLang- 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 iditemName- The Itemname of candidateItem- Returns:
- an instance of ReferenceItem
-
compareReferenceItems
public static CompareResult compareReferenceItems(java.util.List<ReferenceItem> candidateItems, int refId)
-
-