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

java.lang.Object
  extended by fr.paris.lutece.plugins.quicklinks.business.EntrySelectOptionDAO
All Implemented Interfaces:
IEntrySelectOptionDAO

public class EntrySelectOptionDAO
extends java.lang.Object
implements IEntrySelectOptionDAO

Class EntrySelectDAO


Constructor Summary
EntrySelectOptionDAO()
           
 
Method Summary
 void delete(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the EntrySelectOption whose identifier is specified in parameter
 EntrySelectOption insert(EntrySelectOption entrySelectOption, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert the EntrySelectOption
 EntrySelectOption load(int nId, int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the EntrySelectOption from the table
 int newPrimaryKey(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate a new primary key to add a new Entry
 java.util.Collection<EntrySelectOption> select(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a complete list of EntrySelectOption
 java.util.Collection<EntrySelectOption> selectByEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a list of EntrySelectOption specified by entry id
 void store(EntrySelectOption entrySelectOption, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the EntrySelectOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntrySelectOptionDAO

public EntrySelectOptionDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(int nIdEntry,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new Entry

Parameters:
plugin - The Plugin using this data access service
Returns:
The new key.

load

public EntrySelectOption load(int nId,
                              int nIdEntry,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the EntrySelectOption from the table

Specified by:
load in interface IEntrySelectOptionDAO
Parameters:
nId - The identifier of the entry select option
nIdEntry - The identifier of the Entry
plugin - the plugin
Returns:
the instance of the EntrySelectOption

delete

public void delete(int nId,
                   int nIdEntry,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the EntrySelectOption whose identifier is specified in parameter

Specified by:
delete in interface IEntrySelectOptionDAO
Parameters:
nId - The identifier of the EntrySelectOption
nIdEntry - The identifier of the Entry
plugin - The Plugin

insert

public EntrySelectOption insert(EntrySelectOption entrySelectOption,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert the EntrySelectOption

Specified by:
insert in interface IEntrySelectOptionDAO
Parameters:
option - The EntrySelectOption to insert
plugin - The Plugin
Returns:
The EntrySelectOption

store

public void store(EntrySelectOption entrySelectOption,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the EntrySelectOption

Specified by:
store in interface IEntrySelectOptionDAO
Parameters:
option - The EntrySelectOption object
plugin - The Plugin

select

public java.util.Collection<EntrySelectOption> select(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a complete list of EntrySelectOption

Specified by:
select in interface IEntrySelectOptionDAO
Parameters:
plugin - The Plugin
Returns:
A Collection of EntrySelectOption

selectByEntry

public java.util.Collection<EntrySelectOption> selectByEntry(int nIdEntry,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a list of EntrySelectOption specified by entry id

Specified by:
selectByEntry in interface IEntrySelectOptionDAO
Parameters:
nIdEntry - The entry id
plugin - The Plugin
Returns:
A Collection of EntrySelectOption


Copyright © 2011 Mairie de Paris. All Rights Reserved.