|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.query.CaseExpressionImpl
public class CaseExpressionImpl
Constructor Summary | |
---|---|
CaseExpressionImpl()
|
|
CaseExpressionImpl(Object caseOperand)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CaseExpressionImpl()
public CaseExpressionImpl(Object caseOperand)
Method Detail |
---|
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 satisfied
public Expression elseCase(String arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Number arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Date arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Calendar arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Class arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Enum<?> arg)
CaseExpression
elseCase
in interface CaseExpression
arg
- -
corresponds to the result of the case expression if the when
condition is not satisfied
public CaseExpression then(Expression then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Number then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(String then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Date then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Calendar then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Class then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Enum<?> then)
CaseExpression
then
in interface CaseExpression
then
- -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression when(Predicate when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the evaluation condition for the specific case
public CaseExpression when(Expression when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Number when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(String when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the
case operand of the simple case is tested
public CaseExpression when(Date when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Calendar when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Class when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Enum<?> when)
CaseExpression
when
in interface CaseExpression
when
- -
corresponds to the value against which the case operand of
the simple case is tested
void assertWhenState()
void assertThenState()
public String asExpression(AliasContext ctx)
Visitable
asExpression
in interface Visitable
public String asProjection(AliasContext ctx)
Visitable
asProjection
in interface Visitable
public String asJoinable(AliasContext ctx)
Visitable
asJoinable
in interface Visitable
public String getAliasHint(AliasContext ctx)
Visitable
getAliasHint
in interface Visitable
String toJPQL(AliasContext ctx, Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |