public abstract class ExpressionImpl<T> extends SelectionImpl<T> implements ExpressionImplementor<T>, Serializable
ParameterContainer.Helper
Constructor and Description |
---|
ExpressionImpl(CriteriaBuilderImpl criteriaBuilder,
Class<T> javaType) |
Modifier and Type | Method and Description |
---|---|
<X> Expression<X> |
as(Class<X> type)
Perform a typecast upon the expression, returning a new
expression object.
|
ExpressionImplementor<BigDecimal> |
asBigDecimal()
|
ExpressionImplementor<BigInteger> |
asBigInteger()
|
ExpressionImplementor<Double> |
asDouble()
|
ExpressionImplementor<Float> |
asFloat()
|
ExpressionImplementor<Integer> |
asInteger()
|
ExpressionImplementor<Long> |
asLong()
|
ExpressionImplementor<String> |
asString()
|
Predicate |
in(Collection<?> values)
Create a predicate to test whether the expression is a member
of the collection.
|
Predicate |
in(Expression<?>... values)
Create a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
in(Expression<Collection<?>> values)
Create a predicate to test whether the expression is a member
of the collection.
|
Predicate |
in(Object... values)
Create a predicate to test whether the expression is a member
of the argument list.
|
Predicate |
isNotNull()
Create a predicate to test whether the expression is
not null.
|
Predicate |
isNull()
Create a predicate to test whether the expression is null.
|
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueHandlers
getValueHandler
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
render, renderProjection
registerParameters
public ExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType)
public <X> Expression<X> as(Class<X> type)
Expression
as
in interface Expression<T>
type
- intended type of the expressionpublic Predicate isNull()
Expression
isNull
in interface Expression<T>
public Predicate isNotNull()
Expression
isNotNull
in interface Expression<T>
public Predicate in(Object... values)
Expression
in
in interface Expression<T>
values
- values to be tested againstpublic Predicate in(Expression<?>... values)
Expression
in
in interface Expression<T>
values
- expressions to be tested againstpublic Predicate in(Collection<?> values)
Expression
in
in interface Expression<T>
values
- collection of values to be tested againstpublic Predicate in(Expression<Collection<?>> values)
Expression
in
in interface Expression<T>
values
- expression corresponding to collection to be
tested againstpublic ExpressionImplementor<Long> asLong()
ExpressionImplementor
asLong
in interface ExpressionImplementor<T>
public ExpressionImplementor<Integer> asInteger()
ExpressionImplementor
asInteger
in interface ExpressionImplementor<T>
public ExpressionImplementor<Float> asFloat()
ExpressionImplementor
asFloat
in interface ExpressionImplementor<T>
public ExpressionImplementor<Double> asDouble()
ExpressionImplementor
asDouble
in interface ExpressionImplementor<T>
public ExpressionImplementor<BigDecimal> asBigDecimal()
ExpressionImplementor
asBigDecimal
in interface ExpressionImplementor<T>
BigDecimal
public ExpressionImplementor<BigInteger> asBigInteger()
ExpressionImplementor
asBigInteger
in interface ExpressionImplementor<T>
BigInteger
public ExpressionImplementor<String> asString()
ExpressionImplementor
asString
in interface ExpressionImplementor<T>
Copyright © 2017 JBoss by Red Hat. All rights reserved.