public class CaseExpressionImpl extends Object implements CaseExpression, Visitable
Constructor and Description |
---|
CaseExpressionImpl() |
CaseExpressionImpl(Object caseOperand) |
Modifier and Type | Method and Description |
---|---|
String |
asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Get a JPQL fragment as used in WHERE clause.
|
String |
asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in FROM clause.
|
String |
asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in SELECT projection.
|
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(org.apache.openjpa.persistence.query.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.
|
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)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(String arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Number arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Date arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Calendar arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Class arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic Expression elseCase(Enum<?> arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfiedpublic CaseExpression then(Expression then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Number then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(String then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Date then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Calendar then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Class then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression then(Enum<?> then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfiedpublic CaseExpression when(Predicate when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the evaluation condition for the specific casepublic CaseExpression when(Expression when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Number when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(String when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the
case operand of the simple case is testedpublic CaseExpression when(Date when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Calendar when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Class when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is testedpublic CaseExpression when(Enum<?> when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is testedpublic String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asExpression
in interface Visitable
public String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asProjection
in interface Visitable
public String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asJoinable
in interface Visitable
public String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
getAliasHint
in interface Visitable
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.