|
||||||||||
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.PluginFeatureDAO
public final class PluginFeatureDAO
This class provides Data Access methods for PluginFeature objects
Constructor Summary | |
---|---|
PluginFeatureDAO()
|
Method Summary | |
---|---|
void |
delete(int nPluginFeatureId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteAllPluginFeaturesByPluginId(int nIdPlugin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all the features attached to a plugin |
void |
deleteDependency(int nPluginFeatureId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the dependency |
void |
insert(PluginFeature pluginFeature,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertDependency(int nIdPlugin,
int nIdPluginFeature,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts the dependency between the plugin and the admin feature |
PluginFeature |
load(int nIdFeature,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the pluginFeature from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.Collection<PluginFeature> |
selectFeatureByPlugin(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginFeatures and returns them as a collection |
fr.paris.lutece.util.ReferenceList |
selectFeatureByPluginCombo(int nIdPlugin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of features which are available for specific plugins |
void |
store(PluginFeature pluginFeature,
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 PluginFeatureDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin
public void insert(PluginFeature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IPluginFeatureDAO
pluginFeature
- instance of the PluginFeature object to insertplugin
- The pluginpublic void insertDependency(int nIdPlugin, int nIdPluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertDependency
in interface IPluginFeatureDAO
nIdPlugin
- The identifier of the pluginnIdPluginFeature
- The identifier of the pluginFeatureplugin
- The pluginpublic PluginFeature load(int nIdFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IPluginFeatureDAO
nIdFeature
- The identifier of the pluginFeatureplugin
- The plugin
public void delete(int nPluginFeatureId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IPluginFeatureDAO
nPluginFeatureId
- The identifier of the pluginFeatureplugin
- The pluginpublic void deleteDependency(int nPluginFeatureId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginFeatureId
- The identifier of the pluginFeatureplugin
- The pluginpublic void store(PluginFeature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IPluginFeatureDAO
pluginFeature
- The reference of the pluginFeatureplugin
- The pluginpublic java.util.Collection<PluginFeature> selectFeatureByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFeatureByPlugin
in interface IPluginFeatureDAO
nPluginId
- The identifier of the pluginplugin
- The plugin
public fr.paris.lutece.util.ReferenceList selectFeatureByPluginCombo(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFeatureByPluginCombo
in interface IPluginFeatureDAO
nIdPlugin
- The id of the pluginplugin
- The plugin
public void deleteAllPluginFeaturesByPluginId(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllPluginFeaturesByPluginId
in interface IPluginFeatureDAO
nIdPlugin
- The identifier of the pluginplugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |