public class RatingDAO extends Object implements IRatingDAO
| Constructor and Description |
|---|
RatingDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete.
|
void |
deleteByResource(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete by id hub resource.
|
List<Integer> |
findIdMostRatedResources(String strExtendableResourceType,
int nItemsOffset,
int nMaxItemsNumber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the ids of resources ordered by their number of ratings
|
void |
insert(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.
|
Rating |
load(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load.
|
Rating |
loadByResource(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select by id hub resource.
|
void |
store(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Store.
|
public void insert(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IRatingDAOrating - the ratingplugin - the pluginpublic Rating load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IRatingDAOnIdRating - the n id ratingplugin - the pluginpublic void delete(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IRatingDAOnIdRating - the n id ratingplugin - the pluginpublic void deleteByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByResource in interface IRatingDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeplugin - the pluginpublic void store(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IRatingDAOrating - the ratingplugin - the pluginpublic Rating loadByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByResource in interface IRatingDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeplugin - the pluginpublic List<Integer> findIdMostRatedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findIdMostRatedResources in interface IRatingDAOstrExtendableResourceType - The type of resources to considernItemsOffset - The offset of the items to get, or 0 to get items
from the first onenMaxItemsNumber - The maximum number of items to return, or 0 to get
every itemsplugin - the pluginCopyright © 2015 City of Paris. All rights reserved.