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

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

public final class LocalizationKeyDAO
extends Object
implements ILocalizationKeyDAO

This class provides Data Access methods for LocalizationKey objects


Constructor Summary
LocalizationKeyDAO()
           
 
Method Summary
 void delete(int nLocalizationKeyId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(LocalizationKey localizationKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 LocalizationKey load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the localizationKey from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 Collection<LocalizationKey> selectLocalizationKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the localizationKeys and returns them as a collection
 void store(LocalizationKey localizationKey, 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

LocalizationKeyDAO

public LocalizationKeyDAO()
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(LocalizationKey localizationKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface ILocalizationKeyDAO
Parameters:
localizationKey - instance of the LocalizationKey object to insert
plugin - The plugin

load

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

Specified by:
load in interface ILocalizationKeyDAO
Parameters:
nId - The identifier of the localizationKey
plugin - The plugin
Returns:
the instance of the LocalizationKey

delete

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

Specified by:
delete in interface ILocalizationKeyDAO
Parameters:
nLocalizationKeyId - The identifier of the localizationKey
plugin - The plugin

store

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

Specified by:
store in interface ILocalizationKeyDAO
Parameters:
localizationKey - The reference of the localizationKey
plugin - The plugin

selectLocalizationKeysList

public Collection<LocalizationKey> selectLocalizationKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the localizationKeys and returns them as a collection

Specified by:
selectLocalizationKeysList in interface ILocalizationKeyDAO
Parameters:
plugin - The plugin
Returns:
The Collection which contains the data of all the localizationKeys


Copyright © 2013 Mairie de Paris. All Rights Reserved.