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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
then(Object value)
Adds the constructed when expression with the then parameter value to the case when builder.T
thenExpression(String expression)
Adds the constructed when expression with the then expression to the case when builder.T
thenLiteral(Object value)
Adds the constructed when expression with the then parameter value to the case when builder rendered as literal.
-
-
-
Method Detail
-
thenExpression
T thenExpression(String expression)
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
T thenLiteral(Object value)
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
-
-