Class ByteExpression


  • public class ByteExpression
    extends NumericExpression
    Representation of a Byte expression in a Query.
    • Constructor Detail

      • ByteExpression

        public ByteExpression​(SQLStatement stmt,
                              SQLTable table,
                              JavaTypeMapping mapping)
        Constructor for an SQL expression for a (field) mapping in a specified table.
        Parameters:
        stmt - The statement
        table - The table in the statement
        mapping - The mapping for the field
      • ByteExpression

        public ByteExpression​(org.datanucleus.store.query.expression.Expression.MonadicOperator op,
                              SQLExpression expr1)
        Perform an operation
        op
        on expression
        expr1
        .
        Parameters:
        op - operator
        expr1 - operand
      • ByteExpression

        public ByteExpression​(SQLExpression expr1,
                              org.datanucleus.store.query.expression.Expression.DyadicOperator op,
                              SQLExpression expr2)
        Perform an operation
        op
        between
        expr1
        and
        expr2
        .
        Parameters:
        expr1 - the first expression
        op - the operator between operands
        expr2 - the second expression
    • Method Detail

      • lt

        public BooleanExpression lt​(SQLExpression expr)
        Description copied from class: SQLExpression
        Relational operator (lower than)
        Overrides:
        lt in class NumericExpression
        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.
      • le

        public BooleanExpression le​(SQLExpression expr)
        Description copied from class: SQLExpression
        Relational operator (lower than or equals)
        Overrides:
        le in class NumericExpression
        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.
      • gt

        public BooleanExpression gt​(SQLExpression expr)
        Description copied from class: SQLExpression
        Relational operator (greater than)
        Overrides:
        gt in class NumericExpression
        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.
      • ge

        public BooleanExpression ge​(SQLExpression expr)
        Description copied from class: SQLExpression
        Relational operator (greater than or equals)
        Overrides:
        ge in class NumericExpression
        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.
      • invoke

        public SQLExpression invoke​(String methodName,
                                    List args)
        Description copied from class: SQLExpression
        Invocation of a method on this expression.
        Overrides:
        invoke in class SQLExpression
        Parameters:
        methodName - name of the method to invoke
        args - Args to this method (if any)
        Returns:
        the converted value