T
- the type of value held by this parameter.class ParameterExpressionImpl<T> extends ExpressionImpl<T> implements javax.persistence.criteria.ParameterExpression<T>
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) |
String |
toString() |
Value |
toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Bridge contract to convert this facade expression to a kernel value.
|
as, in, in, in, in, isNotNull, isNull, toKernelExpression
acceptVisit, alias, asProjection, assertValidName, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAlias
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
public 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 Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpl
toValue
in class ExpressionImpl<T>
factory
- creates the kernel expressionq
- the query definition context of this expressionpublic StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
asValue
in class SelectionImpl<T>
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.