public class RatingDAO extends Object implements IRatingDAO
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTANT_AND |
static String |
CONSTANT_WHERE |
| Constructor and Description |
|---|
RatingDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete.
|
void |
deleteByIdExtenderHistory(long nIdExtenderHistory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete By Id extender History.
|
void |
deleteByListExtenderHistory(List<Long> listIdExtenderHistory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete By list Id extender History.
|
void |
deleteByResource(String strIdResource,
String strResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete by resource
|
Rating |
findByHistoryExtenderId(long lIdHistoryExtenderId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a
Rating |
List<Rating> |
findByHistoryExtenderIds(List<Long> lIdHistoryExtenderId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a list
Rating |
List<Rating> |
findByResourceAndRatingType(List<String> listIdResource,
String strExtendableResourceType,
String strRatingType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a list
Rating |
void |
insert(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.
|
Optional<Rating> |
load(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load by primary key
|
Optional<Rating> |
load(String strIdExtendableResource,
String strExtendableResourceType,
String ratingType,
double value,
String userGuid,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load by primary key
|
List<Rating> |
loadByResource(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select by resource.
|
List<Rating> |
selectRatingByFilter(RatingExtenderFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
float[] |
selectRatingValue(List<String> listIdResource,
String strExtendableResourceType,
String strRatingType,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
public static final String CONSTANT_WHERE
public static final String CONSTANT_AND
public void insert(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IRatingDAOrating - the ratingplugin - the pluginpublic List<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 Rating findByHistoryExtenderId(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IRatingDAORatingfindByHistoryExtenderId in interface IRatingDAOlIdHistoryExtenderId - the extender idplugin - the pluginRatingpublic Optional<Rating> load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IRatingDAOnIdRating - the rating idplugin - the pluginRatingpublic Optional<Rating> load(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IRatingDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeratingType - the rating typevalue - the rating valueplugin - 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 strIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByResource in interface IRatingDAOstrIdResource - the Extendable resource idstrResourceType - the Extendable Resourcer typeplugin - the pluginpublic void deleteByIdExtenderHistory(long nIdExtenderHistory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdExtenderHistory in interface IRatingDAOplugin - the pluginpublic void deleteByListExtenderHistory(List<Long> listIdExtenderHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByListExtenderHistory in interface IRatingDAOlistIdExtenderHistory - the list Id extender Historyplugin - the pluginpublic List<Rating> findByResourceAndRatingType(List<String> listIdResource, String strExtendableResourceType, String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IRatingDAORatingfindByResourceAndRatingType in interface IRatingDAOlistIdResource - the list of extender resource idstrExtendableResourceType - the str extendable resource typestrRatingType - the rating typeplugin - the pluginRatingpublic float[] selectRatingValue(List<String> listIdResource, String strExtendableResourceType, String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRatingValue in interface IRatingDAOpublic List<Rating> findByHistoryExtenderIds(List<Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IRatingDAORatingfindByHistoryExtenderIds in interface IRatingDAOlIdHistoryExtenderId - the list of extender idplugin - the pluginRatingpublic List<Rating> selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRatingByFilter in interface IRatingDAOCopyright © 2022 City of Paris. All rights reserved.