com.ibm.websphere.ejbquery
Class QueryLocalIterator
- java.lang.Object
-
- com.ibm.websphere.ejbquery.QueryLocalIterator
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.Iterator
public class QueryLocalIterator extends java.lang.Object implements java.util.Iterator, java.io.SerializableIterator 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
Constructors Constructor and Description QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum, java.util.ArrayList headings)
-
Method Summary
Methods Modifier and Type Method and Description voidclose()closes and frees the SQL cursorjava.lang.ExceptiongetException()used to obtain exception information about sql errors or ejb query execution errors.java.lang.ObjectgetFieldClassName(int field)futurejava.lang.StringgetFieldName(int field)descriptive name for the nth field of the result set. n=1 is the first field.intgetFieldsCount()number of fields in the result set.java.lang.ObjectgetFieldType(int field)futurebooleanhasNext()returns TRUE if the iteration has more elementsjava.lang.Objectnext()returns the next IQueryTuple in the iterationvoidremove()no operation
-
-
-
Constructor Detail
-
QueryLocalIterator
public QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum, java.util.ArrayList headings)
-
-
Method Detail
-
next
public java.lang.Object next()
returns the next IQueryTuple in the iteration- Specified by:
nextin interfacejava.util.Iterator
-
hasNext
public boolean hasNext()
returns TRUE if the iteration has more elements- Specified by:
hasNextin interfacejava.util.Iterator
-
remove
public void remove()
no operation- Specified by:
removein interfacejava.util.Iterator
-
close
public void close() throws QueryExceptioncloses and frees the SQL cursor- Throws:
QueryException
-
getException
public java.lang.Exception getException()
used to obtain exception information about sql errors or ejb query execution errors.
-
getFieldType
public java.lang.Object getFieldType(int field)
future
-
getFieldClassName
public java.lang.Object getFieldClassName(int field)
future
-
getFieldName
public java.lang.String getFieldName(int field)
descriptive name for the nth field of the result set. n=1 is the first field.
-
getFieldsCount
public int getFieldsCount()
number of fields in the result set.
-
-