インターフェース CriteriaBuilder.SimpleCase<C,R>

すべてのスーパーインターフェース:
Expression<R>Selection<R>TupleElement<R>
含まれているインターフェース:
CriteriaBuilder

public static interface CriteriaBuilder.SimpleCase<C,R> extends Expression<R>
単純なケース式を作成するために使用されるインターフェース。ケース条件は、指定された順序で評価されます。
  • メソッドの詳細

    • getExpression

      Expression<C> getExpression()
      条件に対してテストされる式を返します。
      戻り値:
    • when

      CriteriaBuilder.SimpleCase<C,R> when(C condition, R result)
      ケース式に when/then 句を追加します。
      パラメーター:
      condition - 「いつ」の状態
      result - 「その後」の結果値
      戻り値:
      単純 CASE 式
    • when

      CriteriaBuilder.SimpleCase<C,R> when(C condition, Expression<? extends R> result)
      ケース式に when/then 句を追加します。
      パラメーター:
      condition - 「いつ」の状態
      result - 「その後」の結果式
      戻り値:
      単純 CASE 式
    • when

      CriteriaBuilder.SimpleCase<C,R> when(Expression<? extends C> condition, R result)
      ケース式に when/then 句を追加します。
      パラメーター:
      condition - 「いつ」の状態
      result - 「その後」の結果値
      戻り値:
      単純 CASE 式
    • when

      CriteriaBuilder.SimpleCase<C,R> when(Expression<? extends C> condition, Expression<? extends R> result)
      ケース式に when/then 句を追加します。
      パラメーター:
      condition - 「いつ」の状態
      result - 「その後」の結果式
      戻り値:
      単純 CASE 式
    • otherwise

      Expression<R> otherwise(R result)
      ケース式に "else" 句を追加します。
      パラメーター:
      result - 「その他」の結果
      戻り値:
    • otherwise

      Expression<R> otherwise(Expression<? extends R> result)
      ケース式に "else" 句を追加します。
      パラメーター:
      result - "else" 結果式
      戻り値: