|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.appstore.business.ComponentDAO
public final class ComponentDAO
This class provides Data Access methods for Component objects
| Constructor Summary | |
|---|---|
ComponentDAO()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
public void insert(Component component,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IComponentDAOcomponent - instance of the Component object to insertplugin - The plugin
public Component load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IComponentDAOnId - The identifier of the componentplugin - The plugin
public void delete(int nComponentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IComponentDAOnComponentId - The identifier of the componentplugin - The plugin
public 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 plugin
public List<Component> selectByApplication(int nApplicationId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
IComponentDAO
selectByApplication in interface IComponentDAOnApplicationId - The application ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||