fr.paris.lutece.plugins.pluginwizard.business.model
Class ApplicationDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.business.model.ApplicationDAO
All Implemented Interfaces:
IApplicationDAO

public final class ApplicationDAO
extends Object
implements IApplicationDAO

This class provides Data Access methods for PluginApplication objects


Constructor Summary
ApplicationDAO()
           
 
Method Summary
 void delete(int nPluginApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete applications of a given plugin
 void insert(Application pluginApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Application load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the pluginApplication from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 Collection<Application> selectByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of plugin application
 Collection<Application> selectPluginApplicationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginApplications and returns them as a collection
 void store(Application pluginApplication, 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

ApplicationDAO

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

Specified by:
insert in interface IApplicationDAO
Parameters:
pluginApplication - instance of the PluginApplication object to insert
plugin - The plugin

load

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

Specified by:
load in interface IApplicationDAO
Parameters:
nId - The identifier of the pluginApplication
plugin - The plugin
Returns:
the instance of the PluginApplication

delete

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

Specified by:
delete in interface IApplicationDAO
Parameters:
nPluginApplicationId - The identifier of the pluginApplication
plugin - The plugin

deleteByPlugin

public void deleteByPlugin(int nIdPlugin,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete applications of a given plugin

Specified by:
deleteByPlugin in interface IApplicationDAO
Parameters:
nIdPlugin - The identifier of the plugin
plugin - The plugin

store

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

Specified by:
store in interface IApplicationDAO
Parameters:
pluginApplication - The reference of the pluginApplication
plugin - The plugin

selectPluginApplicationsList

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

Specified by:
selectPluginApplicationsList in interface IApplicationDAO
Parameters:
plugin - The plugin
Returns:
The Collection which contains the data of all the pluginApplications

selectByPlugin

public Collection<Application> selectByPlugin(int nIdPlugin,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of plugin application

Specified by:
selectByPlugin in interface IApplicationDAO
Parameters:
nIdPlugin - The id of the generated plugin
plugin - The plugin
Returns:
A list of plugin applications


Copyright © 2013 Mairie de Paris. All Rights Reserved.