Enum Class RatingService
- All Implemented Interfaces:
Serializable,Comparable<RatingService>,Constable
RatingService
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfindAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String ratingType) load and build Rating ResultfindAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String strRatingType, String strUserGuid) load and build Rating ResultfindAndbuildRatingResult(List<String> listIdExtendableResource, String strExtendableResourceType, String ratingType) load and build Rating ResultfindByPrimaryKey(int nIdRating) Find by primary keyfindByResource(String strIdExtendableResource, String strExtendableResourceType) Select by resource.findRating(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid) find by primary keyvoidremoveByResource(String strIdExtendableResource, String strExtendableResourceType) Remove rating by resourcestatic RatingServiceReturns the enum constant of this class with the specified name.static RatingService[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
removeByResource
Remove rating by resource- Parameters:
strIdExtendableResource- the Extendable resource idstrExtendableResourceType- the Extendable Resourcer type
-
findByPrimaryKey
Find by primary key- Parameters:
nIdRating- the n id rating- Returns:
- the rating
-
findRating
public Optional<Rating> findRating(String strIdExtendableResource, String strExtendableResourceType, String ratingType, double value, String userGuid) find by primary key- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typeratingType- the rating typevalue- the rating value- Returns:
- the rating
-
findByResource
public List<Rating> findByResource(String strIdExtendableResource, String strExtendableResourceType) Select by resource.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the rating list
-
findAndbuildRatingResult
public List<Rating> findAndbuildRatingResult(List<String> listIdExtendableResource, String strExtendableResourceType, String ratingType) load and build Rating Result- Parameters:
listIdExtendableResource- the list of id resourcestrExtendableResourceType- the resource typeratingType- the rating type- Returns:
- rating result
-
findAndbuildRatingResult
public Optional<Rating> findAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String ratingType) load and build Rating Result- Parameters:
listIdExtendableResource- the of id resourcestrExtendableResourceType- the resource typeratingType- the rating type- Returns:
- rating result
-
findAndbuildRatingResult
public List<Rating> findAndbuildRatingResult(String strIdExtendableResource, String strExtendableResourceType, String strRatingType, String strUserGuid) load and build Rating Result- Parameters:
listIdExtendableResource- the list of id resourcestrExtendableResourceType- the resource typeratingType- the rating typestrGuid- the guid- Returns:
- rating result
-