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 IRatingDAO
rating
- the ratingplugin
- the pluginpublic List<Rating> loadByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByResource
in interface IRatingDAO
strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeplugin
- the pluginpublic Rating findByHistoryExtenderId(long lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IRatingDAO
Rating
findByHistoryExtenderId
in interface IRatingDAO
lIdHistoryExtenderId
- the extender idplugin
- the pluginRating
public Optional<Rating> load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IRatingDAO
nIdRating
- the rating idplugin
- the pluginRating
public Optional<Rating> load(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IRatingDAO
strIdExtendableResource
- 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 IRatingDAO
nIdRating
- the n id ratingplugin
- the pluginpublic void deleteByResource(String strIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByResource
in interface IRatingDAO
strIdResource
- 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 IRatingDAO
plugin
- the pluginpublic void deleteByListExtenderHistory(List<Long> listIdExtenderHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByListExtenderHistory
in interface IRatingDAO
listIdExtenderHistory
- 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)
IRatingDAO
Rating
findByResourceAndRatingType
in interface IRatingDAO
listIdResource
- the list of extender resource idstrExtendableResourceType
- the str extendable resource typestrRatingType
- the rating typeplugin
- the pluginRating
public float[] selectRatingValue(List<String> listIdResource, String strExtendableResourceType, String strRatingType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRatingValue
in interface IRatingDAO
public List<Rating> findByHistoryExtenderIds(List<Long> lIdHistoryExtenderId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IRatingDAO
Rating
findByHistoryExtenderIds
in interface IRatingDAO
lIdHistoryExtenderId
- the list of extender idplugin
- the pluginRating
public List<Rating> selectRatingByFilter(RatingExtenderFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRatingByFilter
in interface IRatingDAO
Copyright © 2022 City of Paris. All rights reserved.