Class Part
java.lang.Object
org.springframework.data.repository.query.parser.Part
A single part of a method name that has to be transformed into a query part. The actual transformation is defined by
a
Part.Type
that is determined from inspecting the given part. The query part can then be looked up via
getProperty()
.- Author:
- Oliver Gierke, Martin Baumgartner, Jens Schauder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The various types of ignore case that are supported.static enum
The type of a method name part. -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns how many method parameters are bound by this part.getType()
int
hashCode()
Returns whether thePropertyPath
referenced should be matched ignoring case.toString()
-
Constructor Details
-
Part
Creates a newPart
from the given method name part, theClass
the part originates from and the start parameter index.- Parameters:
source
- must not be null.clazz
- must not be null.
-
Part
Creates a newPart
from the given method name part, theClass
the part originates from and the start parameter index.- Parameters:
source
- must not be null.clazz
- must not be null.alwaysIgnoreCase
-
-
-
Method Details
-
getNumberOfArguments
public int getNumberOfArguments()Returns how many method parameters are bound by this part.- Returns:
-
getProperty
- Returns:
- the propertyPath
-
getType
- Returns:
- the type
-
shouldIgnoreCase
Returns whether thePropertyPath
referenced should be matched ignoring case.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-