Package com.blazebit.persistence
Interface SimpleCaseWhenBuilder<T>
- Type Parameters:
T
- The builder type that is returned on terminal operations
- All Superinterfaces:
SimpleCaseWhenStarterBuilder<T>
public interface SimpleCaseWhenBuilder<T> extends SimpleCaseWhenStarterBuilder<T>
A builder for simple case when expressions.
The left hand expression also referred to as case operand, will be compared to the when expressions defined via
SimpleCaseWhenStarterBuilder.when(java.lang.String, java.lang.String)
.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Details
-
otherwise
Adds the given else expression to the case when builder.- Parameters:
elseExpression
- The else expression- Returns:
- The parent builder
-
otherwiseLiteral
Adds the given else value to the case when builder rendered as literal.- Parameters:
elseValue
- The else value- Returns:
- The parent builder
- Since:
- 1.4.0
-