fr.paris.lutece.plugins.quicklinks.business
Class EntrySelectOptionHome

java.lang.Object
  extended by fr.paris.lutece.plugins.quicklinks.business.EntrySelectOptionHome

public final class EntrySelectOptionHome
extends java.lang.Object

class EntrySelectOptionHome


Field Summary
static int FIRST_ORDER
           
static int ROOT_PARENT_ID
           
protected static int STEP
           
 
Method Summary
static EntrySelectOption create(EntrySelectOption option, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
static java.util.Collection<EntrySelectOption> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a list of all EntrySelectOption
static java.util.Collection<EntrySelectOption> findByEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a list of all EntrySelectOption
static EntrySelectOption findByPrimaryKey(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a EntrySelectOption whose identifier is specified in parameter
static void goDown(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Move down an IEntry into the list
static void goUp(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Move up an IEntry into the list
static void remove(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the Entry specified by identifier
static void removeByEntryId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the all the EntrySelectOption option from an entry
static void update(EntrySelectOption option, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update The Entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_ORDER

public static final int FIRST_ORDER
See Also:
Constant Field Values

ROOT_PARENT_ID

public static final int ROOT_PARENT_ID
See Also:
Constant Field Values

STEP

protected static final int STEP
See Also:
Constant Field Values
Method Detail

create

public static EntrySelectOption create(EntrySelectOption option,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
option - The Instance of the object Entry
plugin - The Plugin using this data access service
Returns:
The EntrySelectOption

remove

public static void remove(int nId,
                          int nIdEntry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the Entry specified by identifier

Parameters:
nId - The identifier
nIdEntry - The Entry identifier
plugin - The Plugin using this data access service

removeByEntryId

public static void removeByEntryId(int nId,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the all the EntrySelectOption option from an entry

Parameters:
nId - The entry identifier
plugin - The Plugin using this data access service

update

public static void update(EntrySelectOption option,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update The Entry

Parameters:
option - The Entry to update
plugin - The Plugin using this data access service

goDown

public static void goDown(int nId,
                          int nIdEntry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move down an IEntry into the list

Parameters:
nId - The id of the IEntry
nIdEntry - The Entry identifier
plugin - The plugin

goUp

public static void goUp(int nId,
                        int nIdEntry,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move up an IEntry into the list

Parameters:
nId - The id of the IEntry
nIdEntry - The Entry identifier
plugin - The plugin

findByPrimaryKey

public static EntrySelectOption findByPrimaryKey(int nId,
                                                 int nIdEntry,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a EntrySelectOption whose identifier is specified in parameter

Parameters:
nKey - The EntrySelectOption primary key
nIdEntry - The Entry identifier
plugin - the Plugin
Returns:
an instance of EntrySelectOption

findAll

public static java.util.Collection<EntrySelectOption> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all EntrySelectOption

Parameters:
plugin - the plugin
Returns:
the Collection of EntrySelectOption

findByEntry

public static java.util.Collection<EntrySelectOption> findByEntry(int nIdEntry,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all EntrySelectOption

Parameters:
nIdEntry - the entry Id
plugin - the plugin
Returns:
the Collection of EntrySelectOption


Copyright © 2011 Mairie de Paris. All Rights Reserved.