com.ibm.websphere.ejbquery

Class QueryIterator

  1. java.lang.Object
  2. extended bycom.ibm.websphere.ejbquery.QueryIterator
All implemented interfaces:
java.io.Serializable, java.util.Iterator

  1. public class QueryIterator
  2. extends java.lang.Object
  3. implements java.util.Iterator, java.io.Serializable
Iterator over a collection of IQueryTuple objects. This iterator is returned by the remote interface of the Websphere dynamic ejb query service. The result collection belonging to this iterator is fully materialized. This iterator and its collection can be passed to a remote J2EE client.
See Also:
Serialized Form

Constructor Summary

Constructor and Description
QueryIterator(com.ibm.ObjectQuery.QueryTuple[] elements,boolean exhausted,java.util.ArrayList headings)

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getFieldClassName(int field)
future
  1. java.lang.String
getFieldName(int field)
descriptive name for the nth field of the result set.
  1. int
getFieldsCount()
number of fields in the result set
  1. java.lang.Object
getFieldType(int field)
future
  1. boolean
hasNext()
returns TRUE if the iteration has more elements
  1. boolean
isComplete()
TRUE if the result set was truncated, FALSE otherwise.
  1. java.lang.Object
next()
returns the next IQueryTuple in the iteration
  1. void
remove()
no operation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

QueryIterator

  1. public QueryIterator(com.ibm.ObjectQuery.QueryTuple[] elements,
  2. boolean exhausted,
  3. java.util.ArrayList headings)

Method Detail

next

  1. public java.lang.Object next()
returns the next IQueryTuple in the iteration
Specified by:
next in interface java.util.Iterator

hasNext

  1. public boolean hasNext()
returns TRUE if the iteration has more elements
Specified by:
hasNext in interface java.util.Iterator

remove

  1. public void remove()
no operation
Specified by:
remove in interface java.util.Iterator

getFieldType

  1. public java.lang.Object getFieldType( int field)
future

getFieldClassName

  1. public java.lang.Object getFieldClassName( int field)
future

getFieldName

  1. public java.lang.String getFieldName( int field)
descriptive name for the nth field of the result set. n=1 is the first field.

getFieldsCount

  1. public int getFieldsCount()
number of fields in the result set

isComplete

  1. public boolean isComplete()
TRUE if the result set was truncated, FALSE otherwise. The result set can be truncated because of the maxRow parameter on the query call. Query.executeQuery(java.lang.String, java.lang.Object[], java.util.Properties, int, int)