Class ReferenceHome
java.lang.Object
fr.paris.lutece.plugins.referencelist.business.ReferenceHome
This class provides instances management methods (create, find, ...) for Reference objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceCreate an instance of the reference classstatic ReferencefindByPrimaryKey(int nKey) Returns an instance of a reference whose identifier is specified in parameterstatic intfindPrimaryKeyByName(String referenceName) Returns an instance of a reference whose identifier is specified in parameterLoad the id of all the reference objects and returns them as a listLoad the data of all the reference objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad 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 of the reference which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a reference whose identifier is specified in parameter- Parameters:
nKey- The reference primary key- Returns:
- an instance of Reference
-
findPrimaryKeyByName
Returns an instance of a reference whose identifier is specified in parameter- Parameters:
nKey- The reference primary key- Returns:
- an instance of 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
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
-