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)
as
in interface Expression<T>
type
- intended type of the expressionpublic Predicate isNull()
isNull
in interface Expression<T>
public Predicate isNotNull()
isNotNull
in interface Expression<T>
public Predicate in(Object... values)
in
in interface Expression<T>
values
- values to be tested againstpublic Predicate in(Expression<?>... values)
in
in interface Expression<T>
values
- expressions to be tested againstpublic Predicate in(Collection<?> values)
in
in interface Expression<T>
values
- collection of values to be tested againstpublic Predicate in(Expression<Collection<?>> values)
in
in interface Expression<T>
values
- expression corresponding to collection to be
tested againstpublic ExpressionImplementor<Long> asLong()
asLong
in interface ExpressionImplementor<T>
public ExpressionImplementor<Integer> asInteger()
asInteger
in interface ExpressionImplementor<T>
public ExpressionImplementor<Float> asFloat()
asFloat
in interface ExpressionImplementor<T>
public ExpressionImplementor<Double> asDouble()
asDouble
in interface ExpressionImplementor<T>
public ExpressionImplementor<BigDecimal> asBigDecimal()
asBigDecimal
in interface ExpressionImplementor<T>
BigDecimal
public ExpressionImplementor<BigInteger> asBigInteger()
asBigInteger
in interface ExpressionImplementor<T>
BigInteger
public ExpressionImplementor<String> asString()
asString
in interface ExpressionImplementor<T>
Copyright © 2018 JBoss by Red Hat. All rights reserved.