fr.paris.lutece.plugins.directory.business
Class EntryHome

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.EntryHome

public final class EntryHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Entry objects


Method Summary
static void copy(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Copy of an instance of Entry
static int create(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of Entry
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
static java.util.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
static int getNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the number of entry who verify the filter
static void remove(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the entry whose identifier is specified in parameter
static void update(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the entry which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static int create(IEntry entry,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of Entry

Parameters:
entry - The instance of the Entry which contains the informations to store
plugin - the Plugin
Returns:
The primary key of the new entry.

copy

public static void copy(IEntry entry,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy of an instance of Entry

Parameters:
entry - The instance of the Entry who must copy
plugin - the Plugin

update

public static void update(IEntry entry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the entry which is specified in parameter

Parameters:
entry - The instance of the Entry which contains the informations to update
plugin - 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 Id
plugin - 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 key
plugin - the Plugin
Returns:
an instance of Entry

getEntryList

public static java.util.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 filter
plugin - 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 filter
plugin - the plugin
Returns:
the number of entry who verify the filter


Copyright © 2010 Mairie de Paris. All Rights Reserved.