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

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

public final class EntryHome
extends java.lang.Object

class EntryHome


Field Summary
static int FIRST_ORDER
           
static int ROOT_PARENT_ID
           
protected static int STEP
           
 
Method Summary
static IEntry create(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
static java.util.Collection<IEntry> findByFilter(EntryFilter entryFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all Entry corresponding to EntryFilter
static IEntry findByOrder(int nIdQuicklinks, int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the IEntry whose identifier is specified in parameter
static java.util.Collection<IEntry> findByParentId(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find All Entry who have the specified parent id
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.Collection<IEntry> findByQuicklinksId(int nIdQuicklinks, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find All Entry for a quicklinks
static fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find All Entry and put them in a ReferenceList
static IEntry getSpecificEntry(EntryType entryType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the specific entry and return it
static void goDown(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Move down an IEntry into the list
static void goIn(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Set the IEntry into another parent IEntry
static void goOut(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Set the IEntry out of another parent IEntry
static void goUp(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Move up an IEntry into the list
static void remove(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the Entry specified by identifier
static void update(IEntry entry, 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

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

getSpecificEntry

public static IEntry getSpecificEntry(EntryType entryType,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the specific entry and return it

Parameters:
entryType - The type of Entry
plugin - The Plugin
Returns:
The new empty specific entry

create

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

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

remove

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

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

update

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

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

findByQuicklinksId

public static java.util.Collection<IEntry> findByQuicklinksId(int nIdQuicklinks,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find All Entry for a quicklinks

Parameters:
nIdQuicklinks - The Quicklinks identifier
plugin - The Plugin using this data access service
Returns:
A Collection of Entry

findByParentId

public static java.util.Collection<IEntry> findByParentId(int nIdParent,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find All Entry who have the specified parent id

Parameters:
nIdParent - The Quicklinks identifier
plugin - The Plugin using this data access service
Returns:
A Collection of Entry

findReferenceList

public static fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find All Entry and put them in a ReferenceList

Parameters:
plugin - The Plugin using this data access service
Returns:
A ReferenceList

findByFilter

public static java.util.Collection<IEntry> findByFilter(EntryFilter entryFilter,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all Entry corresponding to EntryFilter

Parameters:
entryFilter - The EntryFilter
plugin - The Plugin using this data access service
Returns:
A Collection of Entry

findByOrder

public static IEntry findByOrder(int nIdQuicklinks,
                                 int nIdParent,
                                 int nOrder,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the IEntry whose identifier is specified in parameter

Parameters:
nIdQuicklinks - The quicklinks identifier
nIdParent - The primary key of the parent IEntry
nOrder - The order id
plugin - The current plugin using this method
Returns:
An instance of the IEntry which corresponds to the parent id and order id

goDown

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

Parameters:
nId - The id of the IEntry
nIdQuicklinks - The Quicklinks Id
plugin - The plugin

goUp

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

Parameters:
nId - The id of the IEntry
nIdQuicklinks - The Quicklinks Id
plugin - The plugin

goIn

public static void goIn(int nId,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set the IEntry into another parent IEntry

Parameters:
nId - The IEntry to move
plugin - The plugin

goOut

public static void goOut(int nId,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set the IEntry out of another parent IEntry

Parameters:
nId - The IEntry to move
plugin - The plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.