Class ReferenceHome
- java.lang.Object
-
- fr.paris.lutece.plugins.referencelist.business.ReferenceHome
-
public final class ReferenceHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Reference objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Referencecreate(Reference reference)Create an instance of the reference classstatic ReferencefindByPrimaryKey(int nKey)Returns an instance of a reference whose identifier is specified in parameterstatic intfindPrimaryKeyByName(java.lang.String referenceName)Returns an instance of a reference whose identifier is specified in parameterstatic java.util.List<java.lang.Integer>getIdReferencesList()Load the id of all the reference objects and returns them as a liststatic java.util.List<Reference>getReferencesList()Load the data of all the reference objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetReferencesReferenceList()Load the data of all the reference objects and returns them as a referenceListstatic voidremove(int nKey)Remove the reference whose identifier is specified in parameterstatic Referenceupdate(Reference reference)Update of the reference which is specified in parameter
-
-
-
Method Detail
-
create
public static Reference create(Reference reference)
Create an instance of the reference class- Parameters:
reference- The instance of the Reference which contains the informations to store- Returns:
- The instance of reference which has been created with its primary key.
-
update
public static Reference update(Reference reference)
Update of the reference which is specified in parameter- Parameters:
reference- The instance of the Reference which contains the data to store- Returns:
- The instance of the reference which has been updated
-
remove
public static void remove(int nKey)
Remove the reference whose identifier is specified in parameter- Parameters:
nKey- The reference Id
-
findByPrimaryKey
public static Reference findByPrimaryKey(int nKey)
Returns an instance of a reference whose identifier is specified in parameter- Parameters:
nKey- The reference primary key- Returns:
- an instance of Reference
-
findPrimaryKeyByName
public static int findPrimaryKeyByName(java.lang.String referenceName)
Returns an instance of a reference whose identifier is specified in parameter- Parameters:
nKey- The reference primary key- Returns:
- an instance of Reference
-
getReferencesList
public static java.util.List<Reference> getReferencesList()
Load the data of all the reference objects and returns them as a list- Returns:
- the list which contains the data of all the reference objects
-
getIdReferencesList
public static java.util.List<java.lang.Integer> getIdReferencesList()
Load the id of all the reference objects and returns them as a list- Returns:
- the list which contains the id of all the reference objects
-
getReferencesReferenceList
public static fr.paris.lutece.util.ReferenceList getReferencesReferenceList()
Load the data of all the reference objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the reference objects
-
-