public enum RatingService extends Enum<RatingService>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
List<Rating> |
findAndbuildRatingResult(List<String> listIdExtendableResource,
String strExtendableResourceType,
String ratingType)
load and build Rating Result
|
Optional<Rating> |
findAndbuildRatingResult(String strIdExtendableResource,
String strExtendableResourceType,
String ratingType)
load and build Rating Result
|
List<Rating> |
findAndbuildRatingResult(String strIdExtendableResource,
String strExtendableResourceType,
String strRatingType,
String strUserGuid)
load and build Rating Result
|
Optional<Rating> |
findByPrimaryKey(int nIdRating)
Find by primary key
|
List<Rating> |
findByResource(String strIdExtendableResource,
String strExtendableResourceType)
Select by resource.
|
Optional<Rating> |
findRating(String strIdExtendableResource,
String strExtendableResourceType,
String ratingType,
double value,
String userGuid)
find by primary key
|
void |
removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
Remove rating by resource
|
static RatingService |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RatingService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RatingService INSTANCE
public static RatingService[] values()
for (RatingService c : RatingService.values()) System.out.println(c);
public static RatingService valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource
- the Extendable resource idstrExtendableResourceType
- the Extendable Resourcer typepublic Optional<Rating> findByPrimaryKey(int nIdRating)
nIdRating
- the n id ratingpublic 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 List<Rating> findByResource(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typepublic List<Rating> findAndbuildRatingResult(List<String> listIdExtendableResource, String strExtendableResourceType, String ratingType)
listIdExtendableResource
- the list of id resourcestrExtendableResourceType
- the resource typeratingType
- the rating typepublic Optional<Rating> findAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String ratingType)
listIdExtendableResource
- the of id resourcestrExtendableResourceType
- the resource typeratingType
- the rating typepublic List<Rating> findAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String strRatingType, String strUserGuid)
listIdExtendableResource
- the list of id resourcestrExtendableResourceType
- the resource typeratingType
- the rating typestrGuid
- the guidCopyright © 2022 City of Paris. All rights reserved.