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

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

public final class PluginApplicationDAO
extends java.lang.Object
implements IPluginApplicationDAO

This class provides Data Access methods for PluginApplication objects


Constructor Summary
PluginApplicationDAO()
           
 
Method Summary
 void delete(int nPluginApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteDependency(int nIdApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the dependency
 void insert(PluginApplication pluginApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertDependency(int nIdPlugin, int nPluginApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Adds the dependency
 PluginApplication 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
 java.util.Collection<PluginApplication> selectByPlugin(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of plugin application
 java.util.Collection<PluginApplication> selectPluginApplicationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginApplications and returns them as a collection
 void store(PluginApplication 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

PluginApplicationDAO

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

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

insertDependency

public void insertDependency(int nIdPlugin,
                             int nPluginApplication,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Adds the dependency

Parameters:
nIdPlugin - The id of the plugin
nPluginApplication - The id of the application
plugin - The plugin

load

public PluginApplication 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 IPluginApplicationDAO
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 IPluginApplicationDAO
Parameters:
nPluginApplicationId - The identifier of the pluginApplication
plugin - The plugin

deleteDependency

public void deleteDependency(int nIdApplication,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the dependency

Parameters:
nIdApplication - The identifier of the application
plugin - The plugin

store

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

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

selectPluginApplicationsList

public java.util.Collection<PluginApplication> 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 IPluginApplicationDAO
Parameters:
plugin - The plugin
Returns:
The Collection which contains the data of all the pluginApplications

selectByPlugin

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

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.