Enum RatingService

    • Enum Constant Detail

    • Method Detail

      • values

        public static RatingService[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RatingService c : RatingService.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RatingService valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • removeByResource

        public void removeByResource​(String strIdExtendableResource,
                                     String strExtendableResourceType)
        Remove rating by resource
        Parameters:
        strIdExtendableResource - the Extendable resource id
        strExtendableResourceType - the Extendable Resourcer type
      • findByPrimaryKey

        public Optional<Rating> findByPrimaryKey​(int nIdRating)
        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 resource
        strExtendableResourceType - the str extendable resource type
        ratingType - the rating type
        value - the rating value
        Returns:
        the rating
      • findByResource

        public List<Rating> findByResource​(String strIdExtendableResource,
                                           String strExtendableResourceType)
        Select by resource.
        Parameters:
        strIdExtendableResource - the str id extendable resource
        strExtendableResourceType - 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 resource
        strExtendableResourceType - the resource type
        ratingType - 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 resource
        strExtendableResourceType - the resource type
        ratingType - 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 resource
        strExtendableResourceType - the resource type
        ratingType - the rating type
        strGuid - the guid
        Returns:
        rating result