public class CaseExpressionImpl extends Object implements CaseExpression, Visitable
| Constructor and Description |
|---|
CaseExpressionImpl() |
CaseExpressionImpl(Object caseOperand) |
| Modifier and Type | Method and Description |
|---|---|
String |
asExpression(AliasContext ctx)
Get a JPQL fragment as used in WHERE clause.
|
String |
asJoinable(AliasContext ctx)
Gets the string representation in FROM clause.
|
String |
asProjection(AliasContext ctx)
Gets the string representation in SELECT projection.
|
(package private) void |
assertThenState() |
(package private) void |
assertWhenState() |
Expression |
elseCase(Calendar arg)
Add else to a case expression.
|
Expression |
elseCase(Class arg)
Add else to a case expression.
|
Expression |
elseCase(Date arg)
Add else to a case expression.
|
Expression |
elseCase(Enum<?> arg)
Add else to a case expression.
|
Expression |
elseCase(Expression arg)
Add else to a case expression.
|
Expression |
elseCase(Number arg)
Add else to a case expression.
|
Expression |
elseCase(String arg)
Add else to a case expression.
|
String |
getAliasHint(AliasContext ctx)
Gets the hint to be used while creating alias.
|
CaseExpression |
then(Calendar then)
Add a then clause to a general or simple case expression.
|
CaseExpression |
then(Class then)
Add a then clause to a general or simple case expression.
|
CaseExpression |
then(Date then)
Add a then clause to a general or simple case expression.
|
CaseExpression |
then(Enum<?> then)
Add a then clause to a general or simple case expression.
|
CaseExpression |
then(Expression then)
Add a then clause to a general or simple case expression.
|
CaseExpression |
then(Number then)
Add a then clause to a general or simple case expression.
|
CaseExpression |
then(String then)
Add a then clause to a general or simple case expression.
|
(package private) String |
toJPQL(AliasContext ctx,
Object o) |
CaseExpression |
when(Calendar when)
Add a when clause to a simple case expression.
|
CaseExpression |
when(Class when)
Add a when clause to a simple case expression.
|
CaseExpression |
when(Date when)
Add a when clause to a simple case expression.
|
CaseExpression |
when(Enum<?> when)
Add a when clause to a simple case expression.
|
CaseExpression |
when(Expression when)
Add a when clause to a simple case expression.
|
CaseExpression |
when(Number when)
Add a when clause to a simple case expression.
|
CaseExpression |
when(Predicate when)
Add a when predicate clause to a general case expression.
|
CaseExpression |
when(String when)
Add a when clause to a simple case expression.
|
public CaseExpressionImpl()
public CaseExpressionImpl(Object caseOperand)
public Expression elseCase(Expression arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(String arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Number arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Date arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Calendar arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Class arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Enum<?> arg)
CaseExpressionelseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic CaseExpression then(Expression then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Number then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(String then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Date then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Calendar then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Class then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Enum<?> then)
CaseExpressionthen in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression when(Predicate when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the evaluation condition for the specific casepublic CaseExpression when(Expression when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Number when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(String when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the
case operand of the simple case is testedpublic CaseExpression when(Date when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Calendar when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Class when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Enum<?> when)
CaseExpressionwhen in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is testedvoid assertWhenState()
void assertThenState()
public String asExpression(AliasContext ctx)
VisitableasExpression in interface Visitablepublic String asProjection(AliasContext ctx)
VisitableasProjection in interface Visitablepublic String asJoinable(AliasContext ctx)
VisitableasJoinable in interface Visitablepublic String getAliasHint(AliasContext ctx)
VisitablegetAliasHint in interface VisitableString toJPQL(AliasContext ctx, Object o)
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.