com.ibm.websphere.ejbquery
Class QueryIterator
- java.lang.Object
-
- com.ibm.websphere.ejbquery.QueryIterator
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.Iterator
public class QueryIterator extends java.lang.Object 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
Constructors Constructor and Description QueryIterator(com.ibm.ObjectQuery.QueryTuple[] elements, boolean exhausted, java.util.ArrayList headings)
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Object
getFieldClassName(int field)
futurejava.lang.String
getFieldName(int field)
descriptive name for the nth field of the result set.int
getFieldsCount()
number of fields in the result setjava.lang.Object
getFieldType(int field)
futureboolean
hasNext()
returns TRUE if the iteration has more elementsboolean
isComplete()
TRUE if the result set was truncated, FALSE otherwise.java.lang.Object
next()
returns the next IQueryTuple in the iterationvoid
remove()
no operation
-
-
-
Constructor Detail
-
QueryIterator
public QueryIterator(com.ibm.ObjectQuery.QueryTuple[] elements, boolean exhausted, java.util.ArrayList headings)
-
-
Method Detail
-
next
public java.lang.Object next()
returns the next IQueryTuple in the iteration- Specified by:
next
in interfacejava.util.Iterator
-
hasNext
public boolean hasNext()
returns TRUE if the iteration has more elements- Specified by:
hasNext
in interfacejava.util.Iterator
-
remove
public void remove()
no operation- Specified by:
remove
in interfacejava.util.Iterator
-
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
-
isComplete
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)
-
-