public class Parameter extends Object
Parameters
instance.Modifier | Constructor and Description |
---|---|
protected |
Parameter(MethodParameter parameter)
Creates a new
Parameter for the given MethodParameter . |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the position index the parameter is bound to in the context of its surrounding
Parameters . |
Optional<String> |
getName()
Returns the name of the parameter (through
Param annotation). |
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 |
isDynamicProjectionParameter()
Returns whether the current
Parameter is the one used for dynamic projections. |
boolean |
isExplicitlyNamed()
Returns whether the parameter is named explicitly, i.e. annotated with
Param . |
boolean |
isNamedParameter()
Returns whether the parameter is annotated with
Param . |
boolean |
isSpecialParameter()
Returns whether the parameter is a special parameter.
|
String |
toString() |
protected Parameter(MethodParameter parameter)
Parameter
for the given MethodParameter
.parameter
- must not be null.public boolean isSpecialParameter()
TYPES
public boolean isBindable()
Parameter
is to be bound to a query.public boolean isDynamicProjectionParameter()
Parameter
is the one used for dynamic projections.public String getPlaceholder()
public int getIndex()
Parameters
.public boolean isNamedParameter()
Param
.public Optional<String> getName()
Param
annotation).public boolean isExplicitlyNamed()
Param
.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.