|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.repository.query.parser.Part
public class 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
#getQueryPart()
.
Nested Class Summary | |
---|---|
static class |
Part.IgnoreCaseType
The various types of ignore case that are supported. |
static class |
Part.Type
The type of a method name part. |
Constructor Summary | |
---|---|
Part(String part,
Class<?> clazz)
Creates a new Part from the given method name part, the Class the part originates from and the
start parameter index. |
|
Part(String part,
Class<?> clazz,
boolean alwaysIgnoreCase)
Creates a new Part from the given method name part, the Class the part originates from and the
start parameter index. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getNumberOfArguments()
Returns how many method parameters are bound by this part. |
boolean |
getParameterRequired()
|
PropertyPath |
getProperty()
|
Part.Type |
getType()
|
int |
hashCode()
|
Part.IgnoreCaseType |
shouldIgnoreCase()
Returns whether the PropertyPath referenced should be matched ignoring case. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Part(String part, Class<?> clazz)
Part
from the given method name part, the Class
the part originates from and the
start parameter index.
part
- must not be null.clazz
- must not be {@lpublic Part(String part, Class<?> clazz, boolean alwaysIgnoreCase)
Part
from the given method name part, the Class
the part originates from and the
start parameter index.
part
- must not be null.clazz
- must not be null.alwaysIgnoreCase
- Method Detail |
---|
public boolean getParameterRequired()
public int getNumberOfArguments()
public PropertyPath getProperty()
public Part.Type getType()
public Part.IgnoreCaseType shouldIgnoreCase()
PropertyPath
referenced should be matched ignoring case.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |