Class CaseExpression

java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.CaseExpression

public class CaseExpression extends SQLExpression
Expression representing the SQL construct
CASE WHEN expr1 THEN val1 WHEN expr2 THEN val2 ELSE valN END
.
  • Field Details

  • Constructor Details

  • Method Details

    • eq

      public BooleanExpression eq(SQLExpression expr)
      Description copied from class: SQLExpression
      Equality operator (equals to)
      Overrides:
      eq in class SQLExpression
      Parameters:
      expr - the right-hand operand
      Returns:
      The type of an equality expression is a boolean
    • ne

      public BooleanExpression ne(SQLExpression expr)
      Description copied from class: SQLExpression
      Not equality operator (not equals to)
      Overrides:
      ne in class SQLExpression
      Parameters:
      expr - the right-hand operand
      Returns:
      The type of an equality expression is a boolean
    • ge

      public BooleanExpression ge(SQLExpression expr)
      Description copied from class: SQLExpression
      Relational operator (greater than or equals)
      Overrides:
      ge in class SQLExpression
      Parameters:
      expr - the right-hand operand
      Returns:
      true if the value of the left-hand operand is greater than or equal the value of the right-hand operand, and otherwise is false.
    • gt

      public BooleanExpression gt(SQLExpression expr)
      Description copied from class: SQLExpression
      Relational operator (greater than)
      Overrides:
      gt in class SQLExpression
      Parameters:
      expr - the right-hand operand
      Returns:
      true if the value of the left-hand operand is greater than the value of the right-hand operand, and otherwise is false.
    • le

      public BooleanExpression le(SQLExpression expr)
      Description copied from class: SQLExpression
      Relational operator (lower than or equals)
      Overrides:
      le in class SQLExpression
      Parameters:
      expr - the right-hand operand
      Returns:
      true if the value of the left-hand operand is less than or equal to the value of the right-hand operand, and otherwise is false.
    • lt

      public BooleanExpression lt(SQLExpression expr)
      Description copied from class: SQLExpression
      Relational operator (lower than)
      Overrides:
      lt in class SQLExpression
      Parameters:
      expr - the right-hand operand
      Returns:
      true if the value of the left-hand operand is less than the value of the right-hand operand, and otherwise is false.