wt.query
Class CompositeWhereExpression

java.lang.Object
  extended by 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:
Serialized Form

Field Summary
 
Fields inherited from interface wt.query.WhereExpression
FROM_INDICIES
 
Constructor Summary
CompositeWhereExpression(LogicalOperator a_logicalOperator)
          Constructs a CompositeWhereExpression.
 
Method Summary
 void append(WhereExpression a_whereExpression)
          Appends the specified expression.
 void append(WhereExpression a_whereExpression, int[] a_fromIndicies)
          Appends the specified expression.
 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.
 int setFromIndicies(int[] a_fromIndicies, int a_offset)
          This method sets the From clause indicies for components of the expression.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeWhereExpression

public CompositeWhereExpression(LogicalOperator a_logicalOperator)
Constructs a CompositeWhereExpression.

Supported API: true

Parameters:
a_logicalOperator - Logical operator used to connect expressions
Method Detail

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[]

setFromIndicies

public int setFromIndicies(int[] a_fromIndicies,
                           int a_offset)
This method sets the From clause indicies for components of the expression.

Supported API: true

Specified by:
setFromIndicies in interface WhereExpression
Parameters:
a_fromIndicies - From indicies to set.
a_offset - Offset index into the From indicies array for the next valid From index
Returns:
number of indicies used