fr.paris.lutece.plugins.appstore.business
Class ApplicationDAO

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

public final class ApplicationDAO
extends Object
implements IApplicationDAO

This class provides Data Access methods for Application objects


Constructor Summary
ApplicationDAO()
           
 
Method Summary
 void addComponent(int nApplicationId, int nComponentId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 void clearComponentsList(int nApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 void delete(int nApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Application application, 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 application from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 Collection<Application> selectApplicationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the applications and returns them as a collection
 void store(Application application, 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 application,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IApplicationDAO
Parameters:
application - instance of the Application 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 application from the table

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

delete

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

Specified by:
delete in interface IApplicationDAO
Parameters:
nApplicationId - The identifier of the application
plugin - The plugin

store

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

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

selectApplicationsList

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

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

clearComponentsList

public void clearComponentsList(int nApplicationId,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Specified by:
clearComponentsList in interface IApplicationDAO

addComponent

public void addComponent(int nApplicationId,
                         int nComponentId,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Specified by:
addComponent in interface IApplicationDAO


Copyright © 2014 Mairie de Paris. All Rights Reserved.