Enum Class RepositoryType

java.lang.Object
java.lang.Enum<RepositoryType>
expert.os.integration.microstream.RepositoryType
All Implemented Interfaces:
Serializable, Comparable<RepositoryType>, Constable

public enum RepositoryType extends Enum<RepositoryType>
It defines the operation that might be from the Method
  • Enum Constant Details

    • DEFAULT

      public static final RepositoryType DEFAULT
      Methods from either CrudRepository or PageableRepository
    • FIND_BY

      public static final RepositoryType FIND_BY
      General query method returning the repository type.It starts with "findBy" key word
    • DELETE_BY

      public static final RepositoryType DELETE_BY
      Delete query method returning either no result (void) or the delete count. It starts with "deleteBy" keyword
    • FIND_ALL

      public static final RepositoryType FIND_ALL
      Method that has the "FindAll" keyword
    • COUNT_BY

      public static final RepositoryType COUNT_BY
      Count projection returning a numeric result. It starts with "countBy" keyword
    • EXISTS_BY

      public static final RepositoryType EXISTS_BY
      Exists projection, returning typically a boolean result. It starts with "existsBy" keyword
    • UNKNOWN

      public static final RepositoryType UNKNOWN
    • OBJECT_METHOD

      public static final RepositoryType OBJECT_METHOD
      Methods from Object
    • QUERY

      public static final RepositoryType QUERY
      Method that has Query annotation
    • ORDER_BY

      public static final RepositoryType ORDER_BY
      Method that has OrderBy annotation
  • Method Details

    • values

      public static RepositoryType[] 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

      public static RepositoryType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static RepositoryType of(Method method)
      Returns an operation type from the Method
      Parameters:
      method - the method
      Returns:
      a repository type