Interface Expression

All Superinterfaces:
QueryObject
All Known Subinterfaces:
Field, Function, Literal, Parameter, Projection, Schema
All Known Implementing Classes:
Abs, AbstractExpression, AbstractField, AbstractFunction, AbstractLiteral, AbstractNumericLiteral, AbstractParameter, AbstractTemporalLiteral, Add, BigDecimalLiteral, BooleanLiteral, CompoundExpression, Concat, CustomFunction, DateLiteral, Divide, DoubleLiteral, EnumLiteral, FieldImpl, Length, Locate, LongLiteral, Lower, Multiply, NamedParameter, Negate, PositionalParameter, ProjectionImpl, Remainder, SchemaImpl, Sqrt, StringLiteral, Substring, Subtract, TimeLiteral, TimestampLiteral, Trim, Upper

public interface Expression extends QueryObject
Interface specification for expressions of query objects.
Since:
1.3
Version:
$Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Udai Gupta, Ralf Joachim
  • Method Details

    • add

      Expression add(long value)
      The method for Add arithmetic expression of query objects.
      Parameters:
      value - The long value
      Returns:
      The Expression of query objects
    • add

      Expression add(double value)
      The method for Add ( + ) additive arithmetic expression of query objects.
      Parameters:
      value - The double value
      Returns:
      The Expression of query objects of query objects
    • add

      Expression add(BigDecimal value)
      The method for Add ( + ) additive arithmetic expression of query objects.
      Parameters:
      value - The BigDecimal value
      Returns:
      The Expression of query objects
    • add

      Expression add(Expression value)
      The method for Add ( + ) additive arithmetic expression of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Expression of query objects
    • subtract

      Expression subtract(long value)
      The method for Subtract ( - ) additive arithmetic expression of query objects.
      Parameters:
      value - The long value
      Returns:
      The Expression of query objects
    • subtract

      Expression subtract(double value)
      The method for Subtract ( - ) additive arithmetic expression of query objects.
      Parameters:
      value - The double value
      Returns:
      The Expression of query objects
    • subtract

      Expression subtract(BigDecimal value)
      The method for Subtract ( - ) additive arithmetic expression of query objects.
      Parameters:
      value - The BigDecimal value
      Returns:
      The Expression of query objects
    • subtract

      Expression subtract(Expression value)
      The method for Subtract ( - ) additive arithmetic expression of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Expression of query objects
    • concat

      Expression concat(String value)
      The method for Concat ( || ) additive arithmetic expression of query objects.
      Parameters:
      value - The String value
      Returns:
      The Expression of query objects
    • concat

      Expression concat(Expression value)
      The method for Concat ( || ) additive arithmetic expression of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Expression of query objects
    • multiply

      Expression multiply(long value)
      The method for Concat ( || ) additive arithmetic expression of query objects.
      Parameters:
      value - The long value
      Returns:
      The Expression of query objects
    • multiply

      Expression multiply(double value)
      The method for Multiply ( * ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The double value
      Returns:
      The Expression of query objects
    • multiply

      Expression multiply(BigDecimal value)
      The method for Multiply ( * ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The BigDecimal value
      Returns:
      The Expression of query objects
    • multiply

      Expression multiply(Expression value)
      The method for Multiply ( * ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Expression of query objects
    • divide

      Expression divide(long value)
      The method for Divide ( / ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The long value
      Returns:
      The Expression of query objects
    • divide

      Expression divide(double value)
      The method for Divide ( / ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The double value
      Returns:
      The Expression of query objects
    • divide

      Expression divide(BigDecimal value)
      The method for Divide ( / ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The BigDecimal value
      Returns:
      The Expression of query objects
    • divide

      Expression divide(Expression value)
      The method for Divide ( / ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Expression of query objects
    • remainder

      Expression remainder(long value)
      The method for Reminder ( % ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The long value
      Returns:
      The Expression of query objects
    • remainder

      Expression remainder(double value)
      The method for Reminder ( % ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The double value
      Returns:
      The Expression of query objects
    • remainder

      Expression remainder(BigDecimal value)
      The method for Reminder ( % ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The BigDecimal value
      Returns:
      The Expression of query objects
    • remainder

      Expression remainder(Expression value)
      The method for Reminder ( % ) multiplicative arithmetic expression of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Expression of query objects
    • plus

      Expression plus()
      Plus.
      Returns:
      The Expression of query objects
    • negate

      Expression negate()
      Negate.
      Returns:
      The Expression of query objects
    • length

      Function length()
      The method for LENGTH function of query objects.
      Returns:
      The Function of query objects
    • abs

      Function abs()
      The method for ABS function of query objects.
      Returns:
      The Function of query objects
    • sqrt

      Function sqrt()
      The method for SQRT function of query objects.
      Returns:
      The Function of query objects
    • lower

      Function lower()
      The method for LOWER function of query objects.
      Returns:
      The Function of query objects
    • upper

      Function upper()
      The method for UPPER function of query objects..
      Returns:
      The Function of query objects
    • locate

      Function locate(String value)
      The method for LOCATE function of query objects.
      Parameters:
      value - The String value
      Returns:
      The Function of query objects
    • locate

      Function locate(Expression value)
      The method for LOCATE function of query objects.
      Parameters:
      value - The Expression value
      Returns:
      The Function of query objects
    • locate

      Function locate(String value, int index)
      The method for LOCATE function of query objects.
      Parameters:
      value - The String value
      index - The index
      Returns:
      The Function of query objects
    • locate

      Function locate(String value, Expression index)
      The method for LOCATE function of query objects.
      Parameters:
      value - The value
      index - The index
      Returns:
      The Function of query objects
    • locate

      Function locate(Expression value, int index)
      Locate.
      Parameters:
      value - The value
      index - The index
      Returns:
      The Function of query objects
    • locate

      Function locate(Expression value, Expression index)
      Locate.
      Parameters:
      value - The value
      index - The index
      Returns:
      The Function of query objects
    • substring

      Function substring(int index, int length)
      Substring.
      Parameters:
      index - The index
      length - The length
      Returns:
      The Function of query objects
    • substring

      Function substring(int index, Expression length)
      Substring.
      Parameters:
      index - The index
      length - The length
      Returns:
      The Function of query objects
    • substring

      Function substring(Expression index, int length)
      Substring.
      Parameters:
      index - The index
      length - The length
      Returns:
      The Function of query objects
    • substring

      Function substring(Expression index, Expression length)
      Substring.
      Parameters:
      index - The index
      length - The length
      Returns:
      The Function of query objects
    • trim

      Function trim()
      Trim.
      Returns:
      The Function of query objects
    • trim

      Function trim(char character)
      Trim.
      Parameters:
      character - The character
      Returns:
      The Function of query objects
    • trim

      Function trim(Parameter character)
      Trim.
      Parameters:
      character - The character
      Returns:
      The Function of query objects
    • trim

      Function trim(TrimSpecification trimSpecification)
      Trim.
      Parameters:
      trimSpecification - The trim specification
      Returns:
      The Function of query objects
    • trim

      Function trim(TrimSpecification trimSpecification, char character)
      Trim.
      Parameters:
      trimSpecification - The trim specification
      character - The character
      Returns:
      The Function of query objects
    • trim

      Function trim(TrimSpecification trimSpecification, Parameter character)
      Trim.
      Parameters:
      trimSpecification - The trim specification
      character - The character
      Returns:
      The Function of query objects
    • equal

      Condition equal(boolean value)
      Equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(long value)
      Equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(double value)
      Equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(BigDecimal value)
      Equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(String value)
      Equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(TemporalType temporalType, Date value)
      Equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(TemporalType temporalType, Calendar value)
      Equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • equal

      Condition equal(Expression value)
      Equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(boolean value)
      Not equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(long value)
      Not equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(double value)
      Not equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(BigDecimal value)
      Not equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(String value)
      Not equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(TemporalType temporalType, Date value)
      Not equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(TemporalType temporalType, Calendar value)
      Not equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • notEqual

      Condition notEqual(Expression value)
      Not equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(long value)
      Less Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(double value)
      Less Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(BigDecimal value)
      Less Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(String value)
      Less Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(TemporalType temporalType, Date value)
      Less Then.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(TemporalType temporalType, Calendar value)
      Less Then.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • lessThan

      Condition lessThan(Expression value)
      Less Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(long value)
      Less equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(double value)
      Less equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(BigDecimal value)
      Less equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(String value)
      Less equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(TemporalType temporalType, Date value)
      Less equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(TemporalType temporalType, Calendar value)
      Less equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • lessEqual

      Condition lessEqual(Expression value)
      Less equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(long value)
      Greater equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(double value)
      Greater equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(BigDecimal value)
      Greater equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(String value)
      Greater equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(TemporalType temporalType, Date value)
      Greater equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(TemporalType temporalType, Calendar value)
      Greater equal.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • greaterEqual

      Condition greaterEqual(Expression value)
      Greater equal.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(long value)
      Greater Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(double value)
      Greater Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(BigDecimal value)
      Greater Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(String value)
      Greater Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(TemporalType temporalType, Date value)
      Greater Then.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(TemporalType temporalType, Calendar value)
      Greater Then.
      Parameters:
      temporalType - The temporal type
      value - The value
      Returns:
      The condition
    • greaterThan

      Condition greaterThan(Expression value)
      Greater Then.
      Parameters:
      value - The value
      Returns:
      The condition
    • like

      Condition like(String pattern)
      Like.
      Parameters:
      pattern - The pattern
      Returns:
      The condition
    • like

      Condition like(String pattern, char escape)
      Like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • like

      Condition like(String pattern, Parameter escape)
      Like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • like

      Condition like(Parameter pattern)
      Like.
      Parameters:
      pattern - The pattern
      Returns:
      The condition
    • like

      Condition like(Parameter pattern, char escape)
      Like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • like

      Condition like(Parameter pattern, Parameter escape)
      Like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • notLike

      Condition notLike(String pattern)
      Not like.
      Parameters:
      pattern - The pattern
      Returns:
      The condition
    • notLike

      Condition notLike(String pattern, char escape)
      Not like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • notLike

      Condition notLike(String pattern, Parameter escape)
      Not like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • notLike

      Condition notLike(Parameter pattern)
      Not like.
      Parameters:
      pattern - The pattern
      Returns:
      The condition
    • notLike

      Condition notLike(Parameter pattern, char escape)
      Not like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • notLike

      Condition notLike(Parameter pattern, Parameter escape)
      Not like.
      Parameters:
      pattern - The pattern
      escape - The escape
      Returns:
      The condition
    • between

      Condition between(long low, long high)
      Between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • between

      Condition between(double low, double high)
      Between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • between

      Condition between(BigDecimal low, BigDecimal high)
      Between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • between

      Condition between(String low, String high)
      Between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • between

      Condition between(TemporalType temporalType, Date low, Date high)
      Between.
      Parameters:
      temporalType - The temporal type
      low - The low
      high - The high
      Returns:
      The condition
    • between

      Condition between(TemporalType temporalType, Calendar low, Calendar high)
      Between.
      Parameters:
      temporalType - The temporal type
      low - The low
      high - The high
      Returns:
      The condition
    • between

      Condition between(Expression low, Expression high)
      Between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(long low, long high)
      Not between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(double low, double high)
      Not between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(BigDecimal low, BigDecimal high)
      Not between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(String low, String high)
      Not between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(TemporalType temporalType, Date low, Date high)
      Not between.
      Parameters:
      temporalType - The temporal type
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(TemporalType temporalType, Calendar low, Calendar high)
      Not between.
      Parameters:
      temporalType - The temporal type
      low - The low
      high - The high
      Returns:
      The condition
    • notBetween

      Condition notBetween(Expression low, Expression high)
      Not between.
      Parameters:
      low - The low
      high - The high
      Returns:
      The condition