public static class Expressions.SimpleCase<C,R> extends ExpressionImpl<R> implements javax.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>
| Constructor and Description |
|---|
Expressions.SimpleCase(Class<R> cls) |
Expressions.SimpleCase(javax.persistence.criteria.Expression<C> expr) |
| 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.
|
javax.persistence.criteria.Expression<C> |
getExpression() |
Expressions.SimpleCase<C,R> |
otherwise(javax.persistence.criteria.Expression<? extends R> otherwise) |
Expressions.SimpleCase<C,R> |
otherwise(R otherwise) |
Value |
toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Bridge contract to convert this facade expression to a kernel value.
|
Expressions.SimpleCase<C,R> |
when(C when,
javax.persistence.criteria.Expression<? extends R> then) |
Expressions.SimpleCase<C,R> |
when(C when,
R then) |
Expressions.SimpleCase<C,R> |
when(javax.persistence.criteria.Expression<C> when,
javax.persistence.criteria.Expression<? extends R> then) |
as, in, in, in, in, isNotNull, isNull, toKernelExpressionalias, asProjection, assertValidName, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAliasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullpublic Expressions.SimpleCase(javax.persistence.criteria.Expression<C> expr)
public javax.persistence.criteria.Expression<C> getExpression()
public Expressions.SimpleCase<C,R> when(javax.persistence.criteria.Expression<C> when, javax.persistence.criteria.Expression<? extends R> then)
public Expressions.SimpleCase<C,R> when(C when, javax.persistence.criteria.Expression<? extends R> then)
public Expressions.SimpleCase<C,R> when(C when, R then)
public Expressions.SimpleCase<C,R> otherwise(javax.persistence.criteria.Expression<? extends R> otherwise)
public Expressions.SimpleCase<C,R> otherwise(R otherwise)
public Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpltoValue in class ExpressionImpl<R>factory - creates the kernel expressionq - the query definition context of this expressionpublic void acceptVisit(CriteriaExpressionVisitor visitor)
CriteriaExpressionacceptVisit in interface CriteriaExpressionacceptVisit in class SelectionImpl<R>visitor - a processor to walk the nodes of a tree.public StringBuilder asValue(AliasContext q)
CriteriaExpressionasValue in interface CriteriaExpressionasValue in class SelectionImpl<R>Copyright © 2006–2013 Apache Software Foundation. All rights reserved.