Class EntryHome
- java.lang.Object
-
- fr.paris.lutece.plugins.termofservice.business.EntryHome
-
public final class EntryHome extends Object
This class provides instances management methods (create, find, ...) for Entry objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Entrycreate(Entry entry)Create an instance of the entry classstatic Optional<Entry>findByLastVersion()Returns an instance of a entry whose identifier is specified in parameterstatic Optional<Entry>findByPrimaryKey(int nKey)Returns an instance of a entry whose identifier is specified in parameterstatic List<Entry>getEntrysList()Load the data of all the entry objects and returns them as a liststatic List<Entry>getEntrysListByIds(List<Integer> listIds)Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetEntrysReferenceList()Load the data of all the entry objects and returns them as a referenceListstatic List<Integer>getIdEntrysList()Load the id of all the entry objects and returns them as a liststatic voidremove(int nKey)Remove the entry whose identifier is specified in parameterstatic Entryupdate(Entry entry)Update of the entry which is specified in parameter
-
-
-
Method Detail
-
create
public static Entry create(Entry entry)
Create an instance of the entry class- Parameters:
entry- The instance of the Entry which contains the informations to store- Returns:
- The instance of entry which has been created with its primary key.
-
update
public static Entry update(Entry entry)
Update of the entry which is specified in parameter- Parameters:
entry- The instance of the Entry which contains the data to store- Returns:
- The instance of the entry which has been updated
-
remove
public static void remove(int nKey)
Remove the entry whose identifier is specified in parameter- Parameters:
nKey- The entry Id
-
findByPrimaryKey
public static Optional<Entry> findByPrimaryKey(int nKey)
Returns an instance of a entry whose identifier is specified in parameter- Parameters:
nKey- The entry primary key- Returns:
- an instance of Entry
-
findByLastVersion
public static Optional<Entry> findByLastVersion()
Returns an instance of a entry whose identifier is specified in parameter- Parameters:
nKey- The entry primary key- Returns:
- an instance of Entry
-
getEntrysList
public static List<Entry> getEntrysList()
Load the data of all the entry objects and returns them as a list- Returns:
- the list which contains the data of all the entry objects
-
getIdEntrysList
public static List<Integer> getIdEntrysList()
Load the id of all the entry objects and returns them as a list- Returns:
- the list which contains the id of all the entry objects
-
getEntrysReferenceList
public static fr.paris.lutece.util.ReferenceList getEntrysReferenceList()
Load the data of all the entry objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the entry objects
-
-