|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.ejbquery.QueryLocalIterator
public class QueryLocalIterator
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.
Constructor Summary | |
---|---|
QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum,
java.util.ArrayList headings)
|
Method Summary | |
---|---|
void |
close()
closes and frees the SQL cursor |
java.lang.Exception |
getException()
used to obtain exception information about sql errors or ejb query execution errors. |
java.lang.Object |
getFieldClassName(int field)
future |
java.lang.String |
getFieldName(int field)
descriptive name for the nth field of the result set. n=1 is the first field. |
int |
getFieldsCount()
number of fields in the result set. |
java.lang.Object |
getFieldType(int field)
future |
boolean |
hasNext()
returns TRUE if the iteration has more elements |
java.lang.Object |
next()
returns the next IQueryTuple in the iteration |
void |
remove()
no operation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryLocalIterator(com.ibm.ObjectQuery.eval.DataEnumerator denum, java.util.ArrayList headings)
Method Detail |
---|
public java.lang.Object next()
next
in interface java.util.Iterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public void close() throws QueryException
QueryException
public java.lang.Exception getException()
public java.lang.Object getFieldType(int field)
public java.lang.Object getFieldClassName(int field)
public java.lang.String getFieldName(int field)
public int getFieldsCount()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |