com.ibm.websphere.ejbquery

Class QueryLocalIterator

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

  1. public class QueryLocalIterator
  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 local interface of the Websphere dynamic ejb query service. The result collection belonging to this iterator may be demand driven depending on the nature of the ejb query statement. In general an ejb query will be demand driven unless it requires an in memory ordering, grouping or predicate evaluation. Any SQL resources belonging to this iterator will be freed when the iteration is completed, at garbage collection of the iterator or by calling the close( ) method.
See Also:
Serialized Form

Constructor Summary

Constructor and Description
QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum,java.util.ArrayList headings)

Method Summary

Modifier and Type Method and Description
  1. void
close()
closes and frees the SQL cursor
  1. java.lang.Exception
getException()
used to obtain exception information about sql errors or ejb query execution errors.
  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. n=1 is the first field.
  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. 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

QueryLocalIterator

  1. public QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum,
  2. 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

close

  1. public void close()
  2. throws QueryException
closes and frees the SQL cursor
Throws:

getException

  1. public java.lang.Exception getException( )
used to obtain exception information about sql errors or ejb query execution errors.

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.