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(java.lang.Class<T> cls,
java.lang.String name)
Construct a Parameter of given expected value type and name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query.
|
java.lang.String |
getName()
Gets the name of this parameter.
|
java.lang.Class<T> |
getParameterType() |
java.lang.Integer |
getPosition()
Raises an internal exception because parameters of CriteriaQuery
are not positional.
|
(package private) void |
setIndex(int index) |
java.lang.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 ParameterExpressionImpl(java.lang.Class<T> cls, java.lang.String name)
cls
- expected value typename
- name of the parameter which can be null.public final java.lang.String getName()
getName
in interface javax.persistence.Parameter<T>
public final java.lang.Integer getPosition()
getPosition
in interface javax.persistence.Parameter<T>
void setIndex(int index)
public java.lang.String toString()
toString
in class java.lang.Object
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 java.lang.StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
asValue
in class SelectionImpl<T>
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.