Class ReferenceItemHome
java.lang.Object
fr.paris.lutece.plugins.referencelist.business.ReferenceItemHome
This class provides instances management methods (create, find, ...) for ReferenceItem objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompareResultcompareReferenceItems(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, String itemName) Check if ReferenceItemName exist in Reference.static List<ReferenceItem>Load the data of all the referenceItem objects and returns them as a listLoad the id of all the referenceItem objects and returns them as a liststatic List<ReferenceItem>getReferenceItemsList(int nIdReference) Load the data of all the referenceItem objects and returns them as a liststatic List<ReferenceItem>getReferenceItemsList(int nIdReference, String strLang) Load the data of all the referenceItem objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad 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 Details
-
create
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
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
Returns an instance of a referenceItem whose identifier is specified in parameter- Parameters:
nKey- The referenceItem primary key- Returns:
- an instance of ReferenceItem
-
getReferenceItemsList
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
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
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
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
Check if ReferenceItemName exist in Reference.- Parameters:
nIdReference- The reference iditemName- The Itemname of candidateItem- Returns:
- an instance of ReferenceItem
-
compareReferenceItems
-