|
||||||||||
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.PluginModelDAO
public final class PluginModelDAO
This class provides Data Access methods for PluginModel objects
Constructor Summary | |
---|---|
PluginModelDAO()
|
Method Summary | |
---|---|
void |
delete(int nPluginModelId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
insert(PluginModel pluginModel,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
PluginModel |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the pluginModel from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
boolean |
pluginExists(String strPluginName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verifies whether the plugin exists |
int |
selectPluginModelByName(fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPluginName)
Returns the identifier of the generated plugin |
Collection<PluginModel> |
selectPluginModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginModels and returns them as a collection |
void |
store(PluginModel pluginModel,
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 PluginModelDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin
public void insert(PluginModel pluginModel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IPluginModelDAO
pluginModel
- instance of the PluginModel object to insertplugin
- The pluginpublic PluginModel load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IPluginModelDAO
nId
- The identifier of the pluginModelplugin
- The plugin
public void delete(int nPluginModelId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IPluginModelDAO
nPluginModelId
- The identifier of the pluginModelplugin
- The pluginpublic void store(PluginModel pluginModel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IPluginModelDAO
pluginModel
- The reference of the pluginModelplugin
- The pluginpublic Collection<PluginModel> selectPluginModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginModelsList
in interface IPluginModelDAO
plugin
- The plugin
public int selectPluginModelByName(fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPluginName)
selectPluginModelByName
in interface IPluginModelDAO
plugin
- The PluginstrPluginName
- The name of the generated plugin
public boolean pluginExists(String strPluginName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
pluginExists
in interface IPluginModelDAO
strPluginName
- The name given to the pluginplugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |