public final class ComponentDAO extends Object implements IComponentDAO
| Constructor and Description |
|---|
ComponentDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nComponentId,
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 nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the component from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
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 components and returns them as a collection
|
void |
store(Component component,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(Component component, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IComponentDAOcomponent - instance of the Component object to insertplugin - The pluginpublic Component load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IComponentDAOnId - The identifier of the componentplugin - The pluginpublic void delete(int nComponentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IComponentDAOnComponentId - The identifier of the componentplugin - The pluginpublic void store(Component component, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IComponentDAOcomponent - The reference of the componentplugin - The pluginpublic Collection<Component> selectComponentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectComponentsList in interface IComponentDAOplugin - The pluginpublic List<Component> selectByApplication(int nApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IComponentDAOselectByApplication in interface IComponentDAOnApplicationId - The application IDCopyright © 2015 City of Paris. All rights reserved.