fr.paris.lutece.plugins.appstore.business
Interface IComponentDAO

All Known Implementing Classes:
ComponentDAO

public interface IComponentDAO

IComponentDAO Interface


Method Summary
 void delete(int nIdComponent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Component component, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Component load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 List<Component> selectByApplication(int nApplicationId, fr.paris.lutece.portal.service.plugin.Plugin _plugin)
          Returns a list of component used by the application
 Collection<Component> selectComponentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the component objects and returns them as a collection
 void store(Component component, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(Component component,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
component - instance of the Component object to inssert
plugin - the Plugin

store

void store(Component component,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
component - the reference of the Component
plugin - the Plugin

delete

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

Parameters:
nIdComponent - int identifier of the Component to delete
plugin - the Plugin

load

Component load(int nKey,
               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
strId - The identifier of the component
plugin - the Plugin
Returns:
The instance of the component

selectComponentsList

Collection<Component> selectComponentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the component objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the component objects

selectByApplication

List<Component> selectByApplication(int nApplicationId,
                                    fr.paris.lutece.portal.service.plugin.Plugin _plugin)
Returns a list of component used by the application

Parameters:
nApplicationId - The application ID
plugin - the Plugin
Returns:
a List of Component


Copyright © 2014 Mairie de Paris. All Rights Reserved.