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.Serializable
See Also:
Constructor Summary
Constructor and Description |
---|
QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum,java.util.ArrayList headings)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
close()
closes and frees the SQL cursor
|
|
getException()
used to obtain exception information about sql errors or ejb query execution errors.
|
|
getFieldClassName(int field)
future
|
|
getFieldName(int field)
descriptive name for the nth field of the result set. n=1 is the first field.
|
|
getFieldsCount()
number of fields in the result set.
|
|
getFieldType(int field)
future
|
|
hasNext()
returns TRUE if the iteration has more elements
|
|
next()
returns the next IQueryTuple in the iteration
|
|
remove()
no operation
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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:
next
in interface java.util.Iterator
hasNext
- public boolean hasNext()
returns TRUE if the iteration has more elements
Specified by:
hasNext
in interface java.util.Iterator
remove
- public void remove()
no operation
Specified by:
remove
in interface java.util.Iterator
close
- public void close()
- throws QueryException
closes and frees the SQL cursor
Throws:
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.