|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.rating.business.ResourceStatDAO
public class ResourceStatDAO
class ResourceStatDAO
| Constructor Summary | |
|---|---|
ResourceStatDAO()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceStatDAO()
| Method Detail |
|---|
public ResourceStat load(java.lang.String strResourceType,
int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IResourceStatDAOstrResourceType - the type of the resourcenIdResource - the id of the resourceplugin - the Plugin
public void insert(ResourceStat resourceStat,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IResourceStatDAOresourceStat - instance of the ResourceStat object to insertplugin - the plugin
public void store(ResourceStat resourceStat,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IResourceStatDAOresourceStat - instance of the ResourceStat object to updateplugin - the plugin
public void delete(java.lang.String strResourceType,
int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IResourceStatDAOstrResourceType - The type of the resourcenIdResource - the id of the resourceplugin - the Plugin
public int getDownloadCountByResource(java.lang.String strResourceType,
int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDownloadCountByResource in interface IResourceStatDAOstrResourceType - The type of the resourcenIdResource - the id of the resourceplugin - the Plugin
public int getScore(java.lang.String strResourceType,
int nIdResource,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getScore in interface IResourceStatDAOstrResourceType - The type of the resourcenIdResource - the id of the resourceplugin - the Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||