Enum Class RepositoryType
- All Implemented Interfaces:
Serializable,Comparable<RepositoryType>,Constable
It defines the operation that might be from the Method
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCount projection returning a numeric result.Methods from eitherCrudRepositoryorPageableRepositoryDelete query method returning either no result (void) or the delete count.Exists projection, returning typically a boolean result.Method that has the "FindAll" keywordGeneral query method returning the repository type.It starts with "findBy" key wordMethods fromObjectMethod that hasOrderByannotationMethod that hasQueryannotation -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryTypeReturns an operation type from theMethodstatic RepositoryTypeReturns the enum constant of this class with the specified name.static RepositoryType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Methods from eitherCrudRepositoryorPageableRepository -
FIND_BY
General query method returning the repository type.It starts with "findBy" key word -
DELETE_BY
Delete query method returning either no result (void) or the delete count. It starts with "deleteBy" keyword -
FIND_ALL
Method that has the "FindAll" keyword -
COUNT_BY
Count projection returning a numeric result. It starts with "countBy" keyword -
EXISTS_BY
Exists projection, returning typically a boolean result. It starts with "existsBy" keyword -
UNKNOWN
-
OBJECT_METHOD
Methods fromObject -
QUERY
Method that hasQueryannotation -
ORDER_BY
Method that hasOrderByannotation
-
-
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
-
of
Returns an operation type from theMethod- Parameters:
method- the method- Returns:
- a repository type
-