fr.paris.lutece.plugins.pluginwizard.business
Class ConfigurationKeyDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.business.ConfigurationKeyDAO
All Implemented Interfaces:
IConfigurationKeyDAO

public final class ConfigurationKeyDAO
extends java.lang.Object
implements IConfigurationKeyDAO

This class provides Data Access methods for ConfigurationKey objects


Constructor Summary
ConfigurationKeyDAO()
           
 
Method Summary
 void delete(int nConfigurationKeyId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(ConfigurationKey configurationKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 ConfigurationKey load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the configurationKey from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.Collection<ConfigurationKey> selectConfigurationKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the configurationKeys and returns them as a collection
 void store(ConfigurationKey configurationKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationKeyDAO

public ConfigurationKeyDAO()
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 void insert(ConfigurationKey configurationKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IConfigurationKeyDAO
Parameters:
configurationKey - instance of the ConfigurationKey object to insert
plugin - The plugin

load

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

Specified by:
load in interface IConfigurationKeyDAO
Parameters:
nId - The identifier of the configurationKey
plugin - The plugin
Returns:
the instance of the ConfigurationKey

delete

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

Specified by:
delete in interface IConfigurationKeyDAO
Parameters:
nConfigurationKeyId - The identifier of the configurationKey
plugin - The plugin

store

public void store(ConfigurationKey configurationKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IConfigurationKeyDAO
Parameters:
configurationKey - The reference of the configurationKey
plugin - The plugin

selectConfigurationKeysList

public java.util.Collection<ConfigurationKey> selectConfigurationKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the configurationKeys and returns them as a collection

Specified by:
selectConfigurationKeysList in interface IConfigurationKeyDAO
Parameters:
plugin - The plugin
Returns:
The Collection which contains the data of all the configurationKeys


Copyright © 2011 Mairie de Paris. All Rights Reserved.