Enum Class QueryRewriter.IdentityQueryRewriter
java.lang.Object
java.lang.Enum<QueryRewriter.IdentityQueryRewriter>
org.springframework.data.jpa.repository.QueryRewriter.IdentityQueryRewriter
- All Implemented Interfaces:
Serializable
,Comparable<QueryRewriter.IdentityQueryRewriter>
,Constable
,QueryRewriter
- Enclosing interface:
- QueryRewriter
public static enum QueryRewriter.IdentityQueryRewriter
extends Enum<QueryRewriter.IdentityQueryRewriter>
implements QueryRewriter
A
QueryRewriter
that doesn't change the query.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.QueryRewriter
QueryRewriter.IdentityQueryRewriter
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionRewrite the assembled query with the givenSort
.Returns the enum constant of this class with the specified name.static QueryRewriter.IdentityQueryRewriter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.data.jpa.repository.QueryRewriter
rewrite
-
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
-
rewrite
Description copied from interface:QueryRewriter
Rewrite the assembled query with the givenSort
.WARNING: No checks are performed before the transformed query is passed to the EntityManager.
- Specified by:
rewrite
in interfaceQueryRewriter
- Parameters:
query
- the assembled query.sort
- currentSort
settings provided by the method, orSort.unsorted()
} if there are none.- Returns:
- the query to be used with the
EntityManager
.
-