Class EntryHome
java.lang.Object
fr.paris.lutece.plugins.form.business.EntryHome
This class provides instances management methods (create, find, ...) for Entry objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopy of an instance of Entrystatic intCreation of an instance of Entrystatic IEntryfindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a Entry whose identifier is specified in parametergetEntryList(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the entry who verify the filter and returns them in a liststatic intgetNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the number of entry who verify the filterstatic voidremove(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the entry whose identifier is specified in parameterstatic voidUpdate of the entry which is specified in parameter
-
Method Details
-
create
Creation of an instance of Entry- Parameters:
entry- The instance of the Entry which contains the informations to storeplugin- the Plugin- Returns:
- The primary key of the new entry.
-
copy
Copy of an instance of Entry- Parameters:
entry- The instance of the Entry who must copyplugin- the Plugin
-
update
Update of the entry which is specified in parameter- Parameters:
entry- The instance of the Entry which contains the informations to updateplugin- the Plugin
-
remove
public static void remove(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the entry whose identifier is specified in parameter- Parameters:
nIdEntry- The entry Idplugin- the Plugin
-
findByPrimaryKey
public static IEntry findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a Entry whose identifier is specified in parameter- Parameters:
nKey- The entry primary keyplugin- the Plugin- Returns:
- an instance of Entry
-
getEntryList
public static List<IEntry> getEntryList(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the entry who verify the filter and returns them in a list- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of entry
-
getNumberEntryByFilter
public static int getNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the number of entry who verify the filter- Parameters:
filter- the filterplugin- the plugin- Returns:
- the number of entry who verify the filter
-