public final class ReferenceItemHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static CompareResult |
compareReferenceItems(List<ReferenceItem> candidateItems,
int refId) |
static ReferenceItem |
create(ReferenceItem referenceItem)
Create an instance of the referenceItem class
|
static ReferenceItem |
findByPrimaryKey(int nKey)
Returns an instance of a referenceItem whose identifier is specified in parameter
|
static ReferenceItem |
findByReferenceName(int nIdReference,
String itemName)
Check if ReferenceItemName exist in Reference.
|
static List<ReferenceItem> |
getAllReferenceItems()
Load the data of all the referenceItem objects and returns them as a list
|
static List<Integer> |
getIdReferenceItemsList()
Load the id of all the referenceItem objects and returns them as a list
|
static List<ReferenceItem> |
getReferenceItemsList(int nIdReference)
Load the data of all the referenceItem objects and returns them as a list
|
static List<ReferenceItem> |
getReferenceItemsList(int nIdReference,
String strLang)
Load the data of all the referenceItem objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getReferenceItemsReferenceList()
Load the data of all the referenceItem objects and returns them as a referenceList
|
static void |
remove(int nKey)
Remove the referenceItem whose identifier is specified in parameter and its translations
|
static ReferenceItem |
update(ReferenceItem referenceItem)
Update of the referenceItem which is specified in parameter
|
public static ReferenceItem create(ReferenceItem referenceItem)
referenceItem - The instance of the ReferenceItem which contains the informations to storepublic static ReferenceItem update(ReferenceItem referenceItem)
referenceItem - The instance of the ReferenceItem which contains the data to storepublic static void remove(int nKey)
nKey - The referenceItem Idpublic static ReferenceItem findByPrimaryKey(int nKey)
nKey - The referenceItem primary keypublic static List<ReferenceItem> getReferenceItemsList(int nIdReference)
public static List<ReferenceItem> getAllReferenceItems()
public static List<ReferenceItem> getReferenceItemsList(int nIdReference, String strLang)
nIdReference - the identifier of the referencestrLang - the languagepublic static List<Integer> getIdReferenceItemsList()
public static fr.paris.lutece.util.ReferenceList getReferenceItemsReferenceList()
public static ReferenceItem findByReferenceName(int nIdReference, String itemName)
nIdReference - The reference iditemName - The Itemname of candidateItempublic static CompareResult compareReferenceItems(List<ReferenceItem> candidateItems, int refId)
Copyright © 2023 City of Paris. All rights reserved.