IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.ejbquery
Class IQueryTuple

java.lang.Object
  extended by com.ibm.websphere.ejbquery.IQueryTuple

public abstract class IQueryTuple
extends java.lang.Object

A record of values returned by the SELECT clause of the ejb query. For example the ejb query

     select e.salary+e.bonus as pay, object(e) as employee from EmpBean e
 
returns a collection of IQueryTuples each of which contain two values. The number of values and their labels ( "pay" and "employee" in the example ) can be obtained from the iterator.

See Also:
QueryIterator.getFieldsCount(), QueryIterator.getFieldName(int), QueryLocalIterator.getFieldsCount(), QueryLocalIterator.getFieldName(int)

Constructor Summary
IQueryTuple()
           
 
Method Summary
abstract  java.lang.Object getObject(int col)
          value of the nth element in the SELECT clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQueryTuple

public IQueryTuple()
Method Detail

getObject

public abstract java.lang.Object getObject(int col)
value of the nth element in the SELECT clause. n=1 is the first element.


IBM WebSphere Application ServerTM
Release 8