|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.query.CaseExpressionImpl
public class CaseExpressionImpl
| Constructor Summary | |
|---|---|
CaseExpressionImpl()
|
|
CaseExpressionImpl(Object caseOperand)
|
|
| Method Summary | |
|---|---|
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. |
| 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 CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(String arg)
CaseExpression
elseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Number arg)
CaseExpression
elseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Date arg)
CaseExpression
elseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Calendar arg)
CaseExpression
elseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Class arg)
CaseExpression
elseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public Expression elseCase(Enum<?> arg)
CaseExpression
elseCase in interface CaseExpressionarg - -
corresponds to the result of the case expression if the when
condition is not satisfied
public CaseExpression then(Expression then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Number then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(String then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Date then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Calendar then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Class then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression then(Enum<?> then)
CaseExpression
then in interface CaseExpressionthen - -
corresponds to the result of the case expression if the when
is satisfied
public CaseExpression when(Predicate when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the evaluation condition for the specific case
public CaseExpression when(Expression when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Number when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(String when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the
case operand of the simple case is tested
public CaseExpression when(Date when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Calendar when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Class when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is tested
public CaseExpression when(Enum<?> when)
CaseExpression
when in interface CaseExpressionwhen - -
corresponds to the value against which the case operand of
the simple case is tested
public String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asExpression in interface Visitablepublic String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asProjection in interface Visitablepublic String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asJoinable in interface Visitablepublic String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
getAliasHint in interface Visitable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||