Package wt.query

Class CompositeWhereExpression

java.lang.Object
wt.query.CompositeWhereExpression
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, WhereExpression

public class CompositeWhereExpression extends Object implements WhereExpression, Externalizable
This class represents a number of WHERE expressions connected using a logical operator (i.e. AND/OR).

Supported API: true

Extendable: false
See Also:
  • Constructor Details

    • CompositeWhereExpression

      public CompositeWhereExpression(LogicalOperator a_logicalOperator)
      Constructs a CompositeWhereExpression.

      Supported API: true
      Parameters:
      a_logicalOperator - Logical operator used to connect expressions
  • Method Details

    • append

      public void append(WhereExpression a_whereExpression, int[] a_fromIndicies)
      Appends the specified expression. The specified FROM indicies are applied to the specified WhereExpression.

      Supported API: true
      Parameters:
      a_whereExpression - WhereExpression instance to append
      a_fromIndicies - Indicies relative to a FromClause that will be used for validating and setting aliases when this expression is appended to a statement
    • append

      public void append(WhereExpression a_whereExpression)
      Appends the specified expression. The FROM indicies of the specified WhereExpression are applied to that WhereExpressionf.

      Supported API: true
      Parameters:
      a_whereExpression - WhereExpression instance to append
    • getFromIndicies

      public int[] getFromIndicies()
      Gets the value of the attribute: fromIndicies; Indicies for all current expressions relative to a FromClause that will be used for validating and setting aliases when this compostie expression is appended to a statement.

      Supported API: true
      Specified by:
      getFromIndicies in interface WhereExpression
      Returns:
      int[]