org.hibernate.ejb.criteria.expression
Class ExpressionImpl<T>
java.lang.Object
   org.hibernate.ejb.criteria.AbstractNode
org.hibernate.ejb.criteria.AbstractNode
       org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
           org.hibernate.ejb.criteria.expression.SelectionImpl<T>
org.hibernate.ejb.criteria.expression.SelectionImpl<T>
               org.hibernate.ejb.criteria.expression.ExpressionImpl<T>
org.hibernate.ejb.criteria.expression.ExpressionImpl<T>
- All Implemented Interfaces: 
- Serializable, Expression<T>, Selection<T>, TupleElement<T>, ExpressionImplementor<T>, ParameterContainer, Renderable, SelectionImplementor<T>, TupleElementImplementor<T>
- Direct Known Subclasses: 
- AbstractPathImpl, AbstractPredicateImpl, BasicFunctionExpression, BinaryArithmeticOperation, CoalesceExpression, ConcatExpression, CriteriaSubqueryImpl, EntityTypeExpression, ListIndexExpression, LiteralExpression, MapEntryExpression, NullifExpression, NullLiteralExpression, ParameterExpressionImpl, PathTypeExpression, SearchedCaseExpression, SimpleCaseExpression, SizeOfCollectionExpression, SubqueryComparisonModifierExpression, UnaryArithmeticOperation
- public abstract class ExpressionImpl<T> 
- extends SelectionImpl<T>- implements ExpressionImplementor<T>, Serializable
Models an expression in the criteria query language.
- See Also:
- Serialized Form
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
 
 
 
 
ExpressionImpl
public ExpressionImpl(CriteriaBuilderImpl criteriaBuilder,
                      Class<T> javaType)
as
public <X> Expression<X> as(Class<X> type)
- 
 
- 
- Specified by:
- asin interface- Expression<T>
 
- 
 
isNull
public Predicate isNull()
- 
 
- 
- Specified by:
- isNullin interface- Expression<T>
 
- 
 
isNotNull
public Predicate isNotNull()
- 
 
- 
- Specified by:
- isNotNullin interface- Expression<T>
 
- 
 
in
public Predicate in(Object... values)
- 
 
- 
- Specified by:
- inin interface- Expression<T>
 
- 
 
in
public Predicate in(Expression<?>... values)
- 
 
- 
- Specified by:
- inin interface- Expression<T>
 
- 
 
in
public Predicate in(Collection<?> values)
- 
 
- 
- Specified by:
- inin interface- Expression<T>
 
- 
 
in
public Predicate in(Expression<Collection<?>> values)
- 
 
- 
- Specified by:
- inin interface- Expression<T>
 
- 
 
asLong
public ExpressionImplementor<Long> asLong()
- See CriteriaBuilder.toLong(javax.persistence.criteria.Expression extends java.lang.Number>)
 
- 
- Specified by:
- asLongin interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as a long
 
asInteger
public ExpressionImplementor<Integer> asInteger()
- See CriteriaBuilder.toInteger(javax.persistence.criteria.Expression extends java.lang.Number>)
 
- 
- Specified by:
- asIntegerin interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as an integer
 
asFloat
public ExpressionImplementor<Float> asFloat()
- See CriteriaBuilder.toFloat(javax.persistence.criteria.Expression extends java.lang.Number>)
 
- 
- Specified by:
- asFloatin interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as a float
 
asDouble
public ExpressionImplementor<Double> asDouble()
- See CriteriaBuilder.toDouble(javax.persistence.criteria.Expression extends java.lang.Number>)
 
- 
- Specified by:
- asDoublein interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as a double
 
asBigDecimal
public ExpressionImplementor<BigDecimal> asBigDecimal()
- See CriteriaBuilder.toBigDecimal(javax.persistence.criteria.Expression extends java.lang.Number>)
 
- 
- Specified by:
- asBigDecimalin interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as a BigDecimal
 
asBigInteger
public ExpressionImplementor<BigInteger> asBigInteger()
- See CriteriaBuilder.toBigInteger(javax.persistence.criteria.Expression extends java.lang.Number>)
 
- 
- Specified by:
- asBigIntegerin interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as a BigInteger
 
asString
public ExpressionImplementor<String> asString()
- See CriteriaBuilder.toString(javax.persistence.criteria.Expression)
 
- 
- Specified by:
- asStringin interface- ExpressionImplementor<T>
 
- 
- Returns:
- this but as a string
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.