Package com.blazebit.persistence
Interface CaseWhenThenBuilder<T extends CaseWhenBuilder<?>>
- Type Parameters:
T
- The builder type that is returned on terminal operations
- All Known Subinterfaces:
CaseWhenAndThenBuilder<T>
,CaseWhenOrThenBuilder<T>
public interface CaseWhenThenBuilder<T extends CaseWhenBuilder<?>>
A builder that can terminate the build process for general case when expressions.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionAdds the constructed when expression with the then parameter value to the case when builder.thenExpression
(String expression) Adds the constructed when expression with the then expression to the case when builder.thenLiteral
(Object value) Adds the constructed when expression with the then parameter value to the case when builder rendered as literal.
-
Method Details
-
thenExpression
Adds the constructed when expression with the then expression to the case when builder.- Parameters:
expression
- The then expression- Returns:
- This case when builder
-
thenLiteral
Adds the constructed when expression with the then parameter value to the case when builder rendered as literal.- Parameters:
value
- The then parameter value- Returns:
- This case when builder
- Since:
- 1.4.0
-
then
Adds the constructed when expression with the then parameter value to the case when builder.- Parameters:
value
- The then parameter value- Returns:
- This case when builder
-