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

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.DirectoryDAO
All Implemented Interfaces:
IDirectoryDAO

public final class DirectoryDAO
extends java.lang.Object
implements IDirectoryDAO

class DirectoryDAO


Constructor Summary
DirectoryDAO()
           
 
Method Summary
 void delete(int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.util.ReferenceList getEnableDirectoryList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all enable directory returns them in a reference list
 int insert(Directory directory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Directory load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the Directory from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<Directory> selectDirectoryList(DirectoryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the directory who verify the filter and returns them in a list
 void store(Directory directory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the directory in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryDAO

public DirectoryDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - the plugin
Returns:
The new primary key

insert

public int insert(Directory directory,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IDirectoryDAO
Parameters:
directory - instance of the Directory to insert
plugin - the plugin
Returns:
the new directory create

load

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

Specified by:
load in interface IDirectoryDAO
Parameters:
nId - The identifier of the directory
plugin - the plugin
Returns:
the instance of the Directory

delete

public void delete(int nIdDirectory,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IDirectoryDAO
Parameters:
nIdDirectory - The identifier of the directory
plugin - the plugin

store

public void store(Directory directory,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the directory in the table

Specified by:
store in interface IDirectoryDAO
Parameters:
directory - instance of the Directory object to update
plugin - the plugin

selectDirectoryList

public java.util.List<Directory> selectDirectoryList(DirectoryFilter filter,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the directory who verify the filter and returns them in a list

Specified by:
selectDirectoryList in interface IDirectoryDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of form

getEnableDirectoryList

public fr.paris.lutece.util.ReferenceList getEnableDirectoryList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all enable directory returns them in a reference list

Specified by:
getEnableDirectoryList in interface IDirectoryDAO
Parameters:
plugin - the plugin
Returns:
a reference list of directory


Copyright © 2010 Mairie de Paris. All Rights Reserved.