wt.query
Class ExistsExpression

java.lang.Object
  extended by wt.query.ExistsExpression
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, WhereExpression

public class ExistsExpression
extends Object
implements WhereExpression, Externalizable

This class represents an EXISTS expression in a WHERE clause. A StatementSpec instance is used for the subselect.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface wt.query.WhereExpression
FROM_INDICIES
 
Constructor Summary
ExistsExpression(StatementSpec a_subSelect)
          

Supported API: true
 
Method Summary
 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, toString, wait, wait, wait
 

Constructor Detail

ExistsExpression

public ExistsExpression(StatementSpec a_subSelect)


Supported API: true

Parameters:
a_subSelect - Specifies instance to use for sub-select.
Method Detail

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