|
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.Parameter
public class Parameter
Class to abstract a single parameter of a query method. It is held in the context of a Parameters
instance.
Constructor Summary | |
---|---|
protected |
Parameter(MethodParameter parameter)
Creates a new Parameter for the given type, Annotation s, positioned at the given index inside the
given Parameters . |
Method Summary | |
---|---|
int |
getIndex()
Returns the position index the parameter is bound to in the context of its surrounding Parameters . |
String |
getName()
Returns the name of the parameter (through Param annotation) or null if none can be found. |
String |
getPlaceholder()
Returns the placeholder to be used for the parameter. |
Class<?> |
getType()
Returns the type of the Parameter . |
boolean |
isBindable()
Returns whether the Parameter is to be bound to a query. |
boolean |
isNamedParameter()
Returns whether the parameter is annotated with Param . |
boolean |
isSpecialParameter()
Returns whether the parameter is a special parameter. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Parameter(MethodParameter parameter)
Parameter
for the given type, Annotation
s, positioned at the given index inside the
given Parameters
.
type
- parameters
- index
- name
- Method Detail |
---|
public boolean isSpecialParameter()
index
-
TYPES
public boolean isBindable()
Parameter
is to be bound to a query.
public String getPlaceholder()
index
-
public int getIndex()
Parameters
.
public boolean isNamedParameter()
Param
.
index
-
public String getName()
Param
annotation) or null if none can be found.
public Class<?> getType()
Parameter
.
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 |