gov.nih.nci.cagrid.data.utilities
Class CQLQueryResultsIterator
java.lang.Object
gov.nih.nci.cagrid.data.utilities.CQLQueryResultsIterator
- All Implemented Interfaces:
- java.util.Iterator
public class CQLQueryResultsIterator
- extends java.lang.Object
- implements java.util.Iterator
CQLQueryResultsIterator
Iterator over CQL Query Results
- Version:
- $Id$
- Author:
- David W. Ervin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CQL_COUNT_RESULT_QNAME
public static final javax.xml.namespace.QName CQL_COUNT_RESULT_QNAME
CQLQueryResultsIterator
public CQLQueryResultsIterator(CQLQueryResults results)
- Create a new CQLQueryResultsIterator which will return Object
results deserialized with the default configured AXIS deserializers
- Parameters:
results - The results to iterate over
CQLQueryResultsIterator
public CQLQueryResultsIterator(CQLQueryResults results,
boolean xmlOnly)
- When returning objects, setting xmlOnly to true will bypass the
AXIS deserializer and return straight XML strings. When set to
false, the results are deseriailzed with the default AXIS config
- Parameters:
results - The resuls to iterate overxmlOnly - A flag to indicate if xml strings or objects should be returned
CQLQueryResultsIterator
public CQLQueryResultsIterator(CQLQueryResults results,
java.io.InputStream wsdd)
- When returning objects, the supplied WSDD configuration file is used
to configure the AXIS deserializers
- Parameters:
results - The results to iterate overwsdd - The filename of a wsdd file to use for configuration
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next in interface java.util.Iterator