|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.business.model.PluginPortletDAO
public final class PluginPortletDAO
This class provides Data Access methods for PluginPortlet objects
Constructor Summary | |
---|---|
PluginPortletDAO()
|
Method Summary | |
---|---|
void |
delete(int nPluginPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteDependency(int nIdPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the dependency |
void |
insert(PluginPortlet pluginPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertDependency(int nIdPlugin,
int nIdPortlet,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add the dependency |
PluginPortlet |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the pluginPortlet from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.Collection<PluginPortlet> |
selectPluginPortletsList(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of portlets associated to the generated plugin |
java.util.Collection<PluginPortlet> |
selectPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginPortlets and returns them as a collection |
void |
store(PluginPortlet pluginPortlet,
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 PluginPortletDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin
public void insert(PluginPortlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IPluginPortletDAO
pluginPortlet
- instance of the PluginPortlet object to insertplugin
- The pluginpublic void insertDependency(int nIdPlugin, int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdPlugin
- The id of the pluginnIdPortlet
- The id of the portletplugin
- The pluginpublic PluginPortlet load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IPluginPortletDAO
nId
- The identifier of the pluginPortletplugin
- The plugin
public void delete(int nPluginPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IPluginPortletDAO
nPluginPortletId
- The identifier of the pluginPortletplugin
- The pluginpublic void deleteDependency(int nIdPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdPortlet
- The identifier of the portletplugin
- The pluginpublic void store(PluginPortlet pluginPortlet, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IPluginPortletDAO
pluginPortlet
- The reference of the pluginPortletplugin
- The pluginpublic java.util.Collection<PluginPortlet> selectPluginPortletsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginPortletsList
in interface IPluginPortletDAO
plugin
- The plugin
public java.util.Collection<PluginPortlet> selectPluginPortletsList(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginPortletsList
in interface IPluginPortletDAO
nPluginId
- The identifier of the generated pluginplugin
- The Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |