Enum RatingService

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RatingService>

    public enum RatingService
    extends java.lang.Enum<RatingService>
    RatingService
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INSTANCE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Rating> findAndbuildRatingResult​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType)
      load and build Rating Result
      java.util.List<Rating> findAndbuildRatingResult​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String strRatingType, java.lang.String strUserGuid)
      load and build Rating Result
      java.util.List<Rating> findAndbuildRatingResult​(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType)
      load and build Rating Result
      java.util.Optional<Rating> findByPrimaryKey​(int nIdRating)
      Find by primary key
      java.util.List<Rating> findByResource​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Select by resource.
      java.util.Optional<Rating> findRating​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, java.lang.String ratingType, double value, java.lang.String userGuid)
      find by primary key
      void removeByResource​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Remove rating by resource
      static RatingService valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • removeByResource

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

        public java.util.Optional<Rating> findByPrimaryKey​(int nIdRating)
        Find by primary key
        Parameters:
        nIdRating - the n id rating
        Returns:
        the rating
      • findRating

        public java.util.Optional<Rating> findRating​(java.lang.String strIdExtendableResource,
                                                     java.lang.String strExtendableResourceType,
                                                     java.lang.String ratingType,
                                                     double value,
                                                     java.lang.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 java.util.List<Rating> findByResource​(java.lang.String strIdExtendableResource,
                                                     java.lang.String strExtendableResourceType)
        Select by resource.
        Parameters:
        strIdExtendableResource - the str id extendable resource
        strExtendableResourceType - the str extendable resource type
        Returns:
        the rating list
      • findAndbuildRatingResult

        public java.util.List<Rating> findAndbuildRatingResult​(java.util.List<java.lang.String> listIdExtendableResource,
                                                               java.lang.String strExtendableResourceType,
                                                               java.lang.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 java.util.Optional<Rating> findAndbuildRatingResult​(java.lang.String strIdExtendableResource,
                                                                   java.lang.String strExtendableResourceType,
                                                                   java.lang.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 java.util.List<Rating> findAndbuildRatingResult​(java.lang.String strIdExtendableResource,
                                                               java.lang.String strExtendableResourceType,
                                                               java.lang.String strRatingType,
                                                               java.lang.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