T - the type of value held by this parameter.class ParameterExpressionImpl<T> extends ExpressionImpl<T> implements javax.persistence.criteria.ParameterExpression<T>, BindableParameter
| Constructor and Description |
|---|
ParameterExpressionImpl(Class<T> cls,
String name)
Construct a Parameter of given expected value type and name.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query.
|
String |
getName()
Gets the name of this parameter.
|
Class<T> |
getParameterType() |
Integer |
getPosition()
Raises an internal exception because parameters of CriteriaQuery
are not positional.
|
(package private) void |
setIndex(int index) |
void |
setValue(Object value) |
String |
toString() |
Value |
toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Bridge contract to convert this facade expression to a kernel value.
|
Object |
value() |
as, in, in, in, in, isNotNull, isNull, toKernelExpressionacceptVisit, alias, asProjection, assertValidName, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAliasclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitas, in, in, in, in, isNotNull, isNullpublic final String getName()
getName in interface javax.persistence.Parameter<T>public final Integer getPosition()
getPosition in interface javax.persistence.Parameter<T>void setIndex(int index)
public void setValue(Object value)
setValue in interface BindableParameterpublic Object value()
value in interface BindableParameterpublic Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpltoValue in class ExpressionImpl<T>factory - creates the kernel expressionq - the query definition context of this expressionpublic StringBuilder asValue(AliasContext q)
CriteriaExpressionasValue in interface CriteriaExpressionasValue in class SelectionImpl<T>Copyright © 2006–2015 Apache Software Foundation. All rights reserved.