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

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

public class EntryDAO
extends java.lang.Object
implements IEntryDAO

Class EntryDAO


Constructor Summary
EntryDAO()
           
 
Method Summary
 void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes the Entry whose identifier is specified in parameter
 java.util.Collection<IEntry> findByFilter(EntryFilter entryFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all Entry specified by filter
 IEntry insert(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert the Entry
 IEntry load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the entry type from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate a new primary key to add a new Entry
 void store(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
 

Constructor Detail

EntryDAO

public EntryDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(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 IEntry load(int nId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the entry type from the table

Specified by:
load in interface IEntryDAO
Parameters:
entry - The empty entry object
plugin - the plugin
Returns:
the instance of the EntryType

delete

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

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

insert

public IEntry insert(IEntry entry,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert the Entry

Specified by:
insert in interface IEntryDAO
Parameters:
entry - The Entry object
plugin - The Plugin
Returns:
The Entry

store

public void store(IEntry entry,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the Entry

Specified by:
store in interface IEntryDAO
Parameters:
entry - The Entry object
plugin - The Plugin

findByFilter

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

Specified by:
findByFilter in interface IEntryDAO
Parameters:
entryFilter - The EntryFilter object
plugin - the Plugin
Returns:
the instance of the EntryType


Copyright © 2011 Mairie de Paris. All Rights Reserved.