org.datanucleus.jpa.criteria
Class ParameterExpressionImpl<T>

java.lang.Object
  extended by org.datanucleus.jpa.criteria.ExpressionImpl<T>
      extended by org.datanucleus.jpa.criteria.ParameterExpressionImpl<T>
All Implemented Interfaces:
javax.persistence.criteria.Expression<T>, javax.persistence.criteria.ParameterExpression<T>, javax.persistence.criteria.Selection<T>, javax.persistence.Parameter<T>, javax.persistence.TupleElement<T>

public class ParameterExpressionImpl<T>
extends ExpressionImpl<T>
implements javax.persistence.criteria.ParameterExpression<T>

Implementation of JPA2 Criteria "ParameterExpression".


Constructor Summary
ParameterExpressionImpl(java.lang.Class<T> cls, java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.Class<T> getParameterType()
           
 java.lang.Integer getPosition()
           
 org.datanucleus.query.expression.ParameterExpression getQueryExpression()
          Accessor for the underlying DataNucleus expression for this path.
 java.lang.String toString()
          Method to return the JPQL single-string that this equates to.
 
Methods inherited from class org.datanucleus.jpa.criteria.ExpressionImpl
alias, as, getAlias, getCompoundSelectionItems, getJavaType, in, in, in, in, isCompoundSelection, isNotNull, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
 
Methods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 

Constructor Detail

ParameterExpressionImpl

public ParameterExpressionImpl(java.lang.Class<T> cls,
                               java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface javax.persistence.Parameter<T>

getParameterType

public java.lang.Class<T> getParameterType()
Specified by:
getParameterType in interface javax.persistence.Parameter<T>

getPosition

public java.lang.Integer getPosition()
Specified by:
getPosition in interface javax.persistence.Parameter<T>

getQueryExpression

public org.datanucleus.query.expression.ParameterExpression getQueryExpression()
Accessor for the underlying DataNucleus expression for this path.

Overrides:
getQueryExpression in class ExpressionImpl<T>
Returns:
The DataNucleus query expression

toString

public java.lang.String toString()
Method to return the JPQL single-string that this equates to.

Overrides:
toString in class ExpressionImpl<T>
Returns:
The JPQL single-string form of this order


Copyright © 2011. All Rights Reserved.