fr.paris.lutece.plugins.rating.business
Class ResourceConfDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.rating.business.ResourceConfDAO
All Implemented Interfaces:
IResourceConfDAO

public class ResourceConfDAO
extends java.lang.Object
implements IResourceConfDAO

class ResourceConfDAO


Constructor Summary
ResourceConfDAO()
           
 
Method Summary
 void delete(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the ResourceConf whose identifier are specified in parameters
 void insert(ResourceConf resourceConf, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 ResourceConf load(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the resource conf by the resource type and the resource identifier
 void store(ResourceConf resourceConf, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update record in the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceConfDAO

public ResourceConfDAO()
Method Detail

insert

public void insert(ResourceConf resourceConf,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IResourceConfDAO
Parameters:
resourceConf - instance of the ResourceConf object to insert
plugin - the plugin

load

public ResourceConf load(java.lang.String strResourceType,
                         int nIdResource,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the resource conf by the resource type and the resource identifier

Specified by:
load in interface IResourceConfDAO
Parameters:
strResourceType - the type of the resource
nIdResource - the id of the resource
plugin - the Plugin
Returns:
an instance of resourceConf

store

public void store(ResourceConf resourceConf,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
update record in the table.

Specified by:
store in interface IResourceConfDAO
Parameters:
resourceConf - instance of the ResourceConf object to update
plugin - the plugin

delete

public void delete(java.lang.String strResourceType,
                   int nIdResource,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the ResourceConf whose identifier are specified in parameters

Specified by:
delete in interface IResourceConfDAO
Parameters:
strResourceType - The type of the resource
nIdResource - the id of the resource
plugin - the Plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.