|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.extend.modules.rating.business.RatingDAO
public class RatingDAO
This class provides Data Access methods for Rating objects.
| Constructor Summary | |
|---|---|
RatingDAO()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RatingDAO()
| Method Detail |
|---|
public void insert(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IRatingDAOrating - the ratingplugin - the plugin
public Rating load(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IRatingDAOnIdRating - the n id ratingplugin - the plugin
public void delete(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IRatingDAOnIdRating - the n id ratingplugin - the plugin
public 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 plugin
public void store(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IRatingDAOrating - the ratingplugin - the plugin
public 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 plugin
public 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 plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||