public class RatingHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Rating |
create(Rating rating)
Insert.
|
static List<Rating> |
findByHistoryExtenderIds(List<Long> listIdHistory)
Find a list
Rating by history ids list |
static Optional<Rating> |
findByPrimaryKey(int nIdRating)
Load.
|
static List<Rating> |
findByResource(String strIdExtendableResource,
String strExtendableResourceType)
Select by resource.
|
static List<Rating> |
findByResourceAndRatingType(List<String> listIdsResource,
String strExtendableResourceType,
String ratingType)
Find a list
Rating |
static Optional<Rating> |
findRating(String strIdExtendableResource,
String strExtendableResourceType,
String ratingType,
double value,
String userGuid)
load by primary key
|
static List<Rating> |
findRatingByFilter(RatingExtenderFilter filter)
Find the list of rating
|
static float[] |
findRatingValue(List<String> listIdResource,
String strExtendableResourceType,
String strRatingType)
Find rating value of resource list
|
static void |
remove(int nIdRating)
Delete.
|
static void |
removeByIdExtenderHistory(long nIdHistory)
Delete By Id extender History.
|
static void |
removeByListExtenderHistory(List<Long> listIdExtenderHistory)
Delete By list Id extender History.
|
static void |
removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
Delete by resource
|
public static void remove(int nIdRating)
nIdRating - the n id ratingpublic static void removeByIdExtenderHistory(long nIdHistory)
nId - the Id extender Historypublic static void removeByListExtenderHistory(List<Long> listIdExtenderHistory)
listIdExtenderHistory - the list Id extender Historypublic static void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the Extendable resource idstrExtendableResourceType - the Extendable Resourcer typepublic static Optional<Rating> findByPrimaryKey(int nIdRating)
nIdRating - the n id ratingpublic static Optional<Rating> findRating(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeratingType - the rating typevalue - the rating valuepublic static List<Rating> findByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic static List<Rating> findByResourceAndRatingType(List<String> listIdsResource, String strExtendableResourceType, String ratingType)
RatinglistResource - the list of extender resourceidplugin - the pluginRatingpublic static List<Rating> findByHistoryExtenderIds(List<Long> listIdHistory)
Rating by history ids listlistIdHistory - the list of history idplugin - the pluginRatingpublic static float[] findRatingValue(List<String> listIdResource, String strExtendableResourceType, String strRatingType)
listIdResource - the ids resource liststrExtendableResourceType - the resource typestrRatingType - the rating typepublic static List<Rating> findRatingByFilter(RatingExtenderFilter filter)
filter - the RatingExtenderFilterCopyright © 2022 City of Paris. All rights reserved.