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 Summary

    Modifier and Type Method Description
    T otherwise​(String elseExpression)
    Adds the given else expression to the case when builder.
    T otherwiseLiteral​(Object elseValue)
    Adds the given else value to the case when builder rendered as literal.

    Methods inherited from interface com.blazebit.persistence.SimpleCaseWhenStarterBuilder

    when
  • Method Details

    • otherwise

      T otherwise​(String elseExpression)
      Adds the given else expression to the case when builder.
      Parameters:
      elseExpression - The else expression
      Returns:
      The parent builder
    • otherwiseLiteral

      T otherwiseLiteral​(Object elseValue)
      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