Class CaseExpressionImpl
java.lang.Object
org.apache.openjpa.persistence.query.CaseExpressionImpl
- All Implemented Interfaces:
Serializable
,CaseExpression
,Visitable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasExpression
(org.apache.openjpa.persistence.query.AliasContext ctx) Get a JPQL fragment as used in WHERE clause.asJoinable
(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the string representation in FROM clause.asProjection
(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the string representation in SELECT projection.Add else to a case expression.Add else to a case expression.Add else to a case expression.Add else to a case expression.Add else to a case expression.Add else to a case expression.elseCase
(Expression arg) Add else to a case expression.getAliasHint
(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the hint to be used while creating alias.Add a then clause to a general or simple case expression.Add a then clause to a general or simple case expression.Add a then clause to a general or simple case expression.Add a then clause to a general or simple case expression.Add a then clause to a general or simple case expression.Add a then clause to a general or simple case expression.then
(Expression then) Add a then clause to a general or simple case expression.Add a when clause to a simple case expression.Add a when clause to a simple case expression.Add a when clause to a simple case expression.Add a when clause to a simple case expression.Add a when clause to a simple case expression.Add a when clause to a simple case expression.when
(Expression when) Add a when clause to a simple case expression.Add a when predicate clause to a general case expression.
-
Constructor Details
-
CaseExpressionImpl
public CaseExpressionImpl() -
CaseExpressionImpl
-
-
Method Details
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
elseCase
Description copied from interface:CaseExpression
Add else to a case expression. A case expression must have an else clause.- Specified by:
elseCase
in interfaceCaseExpression
- Parameters:
arg
- - corresponds to the result of the case expression if the when condition is not satisfied- Returns:
- Expression corresponding to the case expression with the added clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
then
Description copied from interface:CaseExpression
Add a then clause to a general or simple case expression. The then clause specifies the result corresponding to the immediately preceding when. Clauses are evaluated in the order added.- Specified by:
then
in interfaceCaseExpression
- Parameters:
then
- - corresponds to the result of the case expression if the when is satisfied- Returns:
- CaseExpression corresponding to the case with the added then clause
-
when
Description copied from interface:CaseExpression
Add a when predicate clause to a general case expression. The when predicate must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added.- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the evaluation condition for the specific case- Returns:
- CaseExpression corresponding to the case with the added when clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
when
Description copied from interface:CaseExpression
Add a when clause to a simple case expression. The when case expression must be followed by the corresponding then case expression that specifies the result of the specific case. Clauses are evaluated in the order added- Specified by:
when
in interfaceCaseExpression
- Parameters:
when
- - corresponds to the value against which the case operand of the simple case is tested- Returns:
- CaseExpression corresponding to the case with the added clause
-
asExpression
Description copied from interface:Visitable
Get a JPQL fragment as used in WHERE clause.- Specified by:
asExpression
in interfaceVisitable
-
asProjection
Description copied from interface:Visitable
Gets the string representation in SELECT projection.- Specified by:
asProjection
in interfaceVisitable
-
asJoinable
Description copied from interface:Visitable
Gets the string representation in FROM clause.- Specified by:
asJoinable
in interfaceVisitable
-
getAliasHint
Description copied from interface:Visitable
Gets the hint to be used while creating alias.- Specified by:
getAliasHint
in interfaceVisitable
-