|
||||||||||
| 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.ResourceKeyDAO
public final class ResourceKeyDAO
This class provides Data Access methods for ResourceKey objects
| Constructor Summary | |
|---|---|
ResourceKeyDAO()
|
|
| Method Summary | |
|---|---|
void |
addEmptyKeys(int nPluginId,
java.util.ArrayList<java.lang.String> listKeys,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Adds the list of required i18n keys |
void |
delete(int nResourceKeyId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteAllByPlugin(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all records from the table |
void |
deleteByPlugin(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all resources related to plugin record from the table |
void |
deleteDependency(int nResourceKeyId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the dependency |
java.util.Collection<ResourceKey> |
getAllResourceKeys(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fetches all the resource keys by plugin |
void |
insert(ResourceKey resourceKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertDependency(int nIdPlugin,
int nIdResourceKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts the dependency between the plugin and its resource keys |
boolean |
isEmpty(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verifies whether no resource is present for a plugin |
boolean |
isValid(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns whether all the resource keys are filled before generation |
ResourceKey |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the resourceKey from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.Collection<ResourceKey> |
selectResourceKeysList(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the resource keys related to a generated plugin |
java.util.Collection<ResourceKey> |
selectResourceKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the resourceKeys and returns them as a collection |
void |
store(ResourceKey resourceKey,
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 ResourceKeyDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
public void insert(ResourceKey resourceKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IResourceKeyDAOresourceKey - instance of the ResourceKey object to insertplugin - The plugin
public void insertDependency(int nIdPlugin,
int nIdResourceKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdPlugin - The id of the pluginnIdResourceKey - The id of the resource keyplugin - The plugin
public ResourceKey load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IResourceKeyDAOnId - The identifier of the resourceKeyplugin - The plugin
public void delete(int nResourceKeyId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IResourceKeyDAOnResourceKeyId - The identifier of the resourceKeyplugin - The plugin
public void deleteAllByPlugin(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId - The identifier of the resourceKeyplugin - The plugin
public void deleteDependency(int nResourceKeyId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nResourceKeyId - The identifier of the ressourceplugin - The plugin
public void store(ResourceKey resourceKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IResourceKeyDAOresourceKey - The reference of the resourceKeyplugin - The pluginpublic java.util.Collection<ResourceKey> selectResourceKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectResourceKeysList in interface IResourceKeyDAOplugin - The plugin
public java.util.Collection<ResourceKey> selectResourceKeysList(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectResourceKeysList in interface IResourceKeyDAOnPluginId - The identifier of the pluginplugin - The plugin
public java.util.Collection<ResourceKey> getAllResourceKeys(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPluginId - The identifier of the generated pluginplugin - The plugin
public boolean isValid(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isValid in interface IResourceKeyDAOnPluginId - The identifier of the pluginplugin - The plugin
public void addEmptyKeys(int nPluginId,
java.util.ArrayList<java.lang.String> listKeys,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
addEmptyKeys in interface IResourceKeyDAOnPluginId - The id of the pluginlistKeys - The markers identifierplugin - The plugin
public boolean isEmpty(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isEmpty in interface IResourceKeyDAOnPluginId - The identifier of the pluginplugin - The plugin
public void deleteByPlugin(int nPluginId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByPlugin in interface IResourceKeyDAOnPluginId - The identifier of the pluginplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||