public static class Expressions.Case<T> extends ExpressionImpl<T> implements javax.persistence.criteria.CriteriaBuilder.Case<T>
Constructor and Description |
---|
Expressions.Case(Class<T> cls) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(CriteriaExpressionVisitor visitor)
Accept visit from the given visitor.
|
StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query.
|
Expressions.Case<T> |
otherwise(javax.persistence.criteria.Expression<? extends T> otherwise) |
Expressions.Case<T> |
otherwise(T otherwise) |
Value |
toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Bridge contract to convert this facade expression to a kernel value.
|
Expressions.Case<T> |
when(javax.persistence.criteria.Expression<Boolean> when,
javax.persistence.criteria.Expression<? extends T> then) |
Expressions.Case<T> |
when(javax.persistence.criteria.Expression<Boolean> when,
T then) |
as, in, in, in, in, isNotNull, isNull, toKernelExpression
alias, asProjection, assertValidName, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAlias
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
public Expressions.Case<T> when(javax.persistence.criteria.Expression<Boolean> when, javax.persistence.criteria.Expression<? extends T> then)
when
in interface javax.persistence.criteria.CriteriaBuilder.Case<T>
public Expressions.Case<T> when(javax.persistence.criteria.Expression<Boolean> when, T then)
when
in interface javax.persistence.criteria.CriteriaBuilder.Case<T>
public Expressions.Case<T> otherwise(javax.persistence.criteria.Expression<? extends T> otherwise)
otherwise
in interface javax.persistence.criteria.CriteriaBuilder.Case<T>
public Expressions.Case<T> otherwise(T otherwise)
otherwise
in interface javax.persistence.criteria.CriteriaBuilder.Case<T>
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 void acceptVisit(CriteriaExpressionVisitor visitor)
CriteriaExpression
acceptVisit
in interface CriteriaExpression
acceptVisit
in class SelectionImpl<T>
visitor
- a processor to walk the nodes of a tree.public StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
asValue
in class SelectionImpl<T>
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.