IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

com.ibm.db2.wrapper
Class ParsedQueryFragment

java.lang.Object
  extended bycom.ibm.db2.wrapper.ParsedQueryFragment
Direct Known Subclasses:
Reply, Request

public class ParsedQueryFragment
extends java.lang.Object

The ParsedQueryFragment class represents the base class of both the Request class and Reply class. The ParsedQueryFragment class describes a query fragment. The query fragment is composed of SELECT, FROM, WHERE and ORDER BY clauses. Each clause is represented by an array of objects. The methods of this class return the size of the arrays, the entries and the associated data structures.

Since:
IBM DB2 Information Integrator Version 8.2

Method Summary
 boolean getDistinct()
          Test the DISTINCT indicator (SELECT DISTINCT clause).
 RequestExp getHeadExp(int position)
          Retrieve the expression at the specified position in the SELECT clause.
 UnfencedGenericNickname getNickname(int position)
          Retrieve the nickname that corresponds to the specified position in the FROM clause.
 int getNumberOfHeadExp()
          Retrieve the number of elements in the SELECT clause.
 int getNumberOfPredicates()
          Retrieve the number of elements (predicates) in the WHERE clause.
 int getNumberOfQuantifiers()
          Retrieve the number of elements (quantifiers) in the FROM clause.
 RequestExp getPredicate(int position)
          Retrieve the predicate expression at the specified position in the WHERE clause.
 Quantifier getQuantifier(int position)
          Retrieve the quantifier at the specified position in the FROM clause.
 Quantifier getQuantifierByHandle(int quantifierHandle)
          Retrieve the quantifier with the specified handle in the FROM clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDistinct

public final boolean getDistinct()
Test the DISTINCT indicator (SELECT DISTINCT clause).

Returns:
The DISTINCT indicator.
Since:
IBM DB2 Information Integrator Version 8.2

getHeadExp

public final RequestExp getHeadExp(int position)
Retrieve the expression at the specified position in the SELECT clause.

Parameters:
position - The position of the head expression in the SELECT clause. The first head expression is at position 1.
Returns:
The head expression at the specified position.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
RequestExp

getNickname

public final UnfencedGenericNickname getNickname(int position)
Retrieve the nickname that corresponds to the specified position in the FROM clause.

Parameters:
position - The position of the quantifier in the FROM clause. The first quantifier is at position 1.
Returns:
The nickname object at the specified position.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
UnfencedGenericNickname

getNumberOfHeadExp

public final int getNumberOfHeadExp()
Retrieve the number of elements in the SELECT clause.

Returns:
The number of head expressions.
Since:
IBM DB2 Information Integrator Version 8.2

getNumberOfPredicates

public final int getNumberOfPredicates()
Retrieve the number of elements (predicates) in the WHERE clause.

Returns:
The number of predicates.
Since:
IBM DB2 Information Integrator Version 8.2

getNumberOfQuantifiers

public final int getNumberOfQuantifiers()
Retrieve the number of elements (quantifiers) in the FROM clause.

Returns:
The number of quantifiers.
Since:
IBM DB2 Information Integrator Version 8.2

getPredicate

public final RequestExp getPredicate(int position)
Retrieve the predicate expression at the specified position in the WHERE clause.

Parameters:
position - The position of the predicate in the WHERE clause. The first predicate is at position 1.
Returns:
The predicate expression at the specified position.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
RequestExp

getQuantifier

public final Quantifier getQuantifier(int position)
Retrieve the quantifier at the specified position in the FROM clause.

Parameters:
position - The quantifier position in the FROM clause. The first quantifier is at position 1.
Returns:
The quantifier at the specified position.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
Quantifier

getQuantifierByHandle

public final Quantifier getQuantifierByHandle(int quantifierHandle)
Retrieve the quantifier with the specified handle in the FROM clause.

Parameters:
quantifierHandle - The quantifier handle.
Returns:
The quantifier object for the specified handle.
Since:
IBM DB2 Information Integrator Version 8.2
See Also:
Quantifier

IBM DB2 Information Integrator
Java API Reference
for Developing Wrappers

(C)Copyright IBM Corp. 2002. All rights reserved.

Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.