fr.paris.lutece.plugins.rating.business
Interface IResourceStatDAO

All Known Implementing Classes:
ResourceStatDAO

public interface IResourceStatDAO

Interface IResourceStatDAO


Method Summary
 void delete(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the ResourceStat whose identifier are specified in parameters
 int getDownloadCountByResource(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the count of resource download whose resource identifier and resource type are specified in parameters
 int getScore(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the score of a resource whose resource identifier and resource type are specified in parameters
 void insert(ResourceStat resourceStat, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 ResourceStat load(java.lang.String strResourceType, int nIdResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the resourceStat from the table
 void store(ResourceStat resourceStat, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update record in the table.
 

Method Detail

insert

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

Parameters:
resourceStat - instance of the ResourceStat object to insert
plugin - the plugin

store

void store(ResourceStat resourceStat,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
update record in the table.

Parameters:
resourceStat - instance of the ResourceStat object to update
plugin - the plugin

load

ResourceStat load(java.lang.String strResourceType,
                  int nIdResource,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the resourceStat from the table

Parameters:
strResourceType - the type of the resource
nIdResource - the id of the resource
plugin - the Plugin
Returns:
an instance of DownloadStat

delete

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

Parameters:
strResourceType - The type of the resource
nIdResource - the id of the resource
plugin - the Plugin

getDownloadCountByResource

int getDownloadCountByResource(java.lang.String strResourceType,
                               int nIdResource,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the count of resource download whose resource identifier and resource type are specified in parameters

Parameters:
strResourceType - the type of the resource
nIdResource - the id of the resource
plugin - the Plugin
Returns:
the count of resource download

getScore

int getScore(java.lang.String strResourceType,
             int nIdResource,
             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the score of a resource whose resource identifier and resource type are specified in parameters

Parameters:
strResourceType - the type of the resource
nIdResource - the id of the resource
plugin - the Plugin
Returns:
the score


Copyright © 2010 Mairie de Paris. All Rights Reserved.