gov.nih.nci.cagrid.data.utilities
Class CQLQueryResultsIterator

java.lang.Object
  extended by 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

Field Summary
static javax.xml.namespace.QName CQL_COUNT_RESULT_QNAME
           
 
Constructor Summary
CQLQueryResultsIterator(CQLQueryResults results)
          Create a new CQLQueryResultsIterator which will return Object results deserialized with the default configured AXIS deserializers
CQLQueryResultsIterator(CQLQueryResults results, boolean xmlOnly)
          When returning objects, setting xmlOnly to true will bypass the AXIS deserializer and return straight XML strings.
CQLQueryResultsIterator(CQLQueryResults results, java.io.InputStream wsdd)
          When returning objects, the supplied WSDD configuration file is used to configure the AXIS deserializers
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CQL_COUNT_RESULT_QNAME

public static final javax.xml.namespace.QName CQL_COUNT_RESULT_QNAME
Constructor Detail

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 over
xmlOnly - 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 over
wsdd - The filename of a wsdd file to use for configuration
Method Detail

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