Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.access.util
Class IteratedSelectObserver  view IteratedSelectObserver download IteratedSelectObserver.java

java.lang.Object
  extended byorg.objectstyle.cayenne.access.util.DefaultOperationObserver
      extended byorg.objectstyle.cayenne.access.util.IteratedSelectObserver
All Implemented Interfaces:
org.objectstyle.cayenne.access.OperationHints, org.objectstyle.cayenne.access.OperationObserver

public class IteratedSelectObserver
extends DefaultOperationObserver

OperationObserver that is used to track the execution of SelectQueries with results returned as ResultIterator.


Field Summary
protected  org.objectstyle.cayenne.access.ResultIterator resultIterator
           
 
Fields inherited from class org.objectstyle.cayenne.access.util.DefaultOperationObserver
DEFAULT_LOG_LEVEL, globalExceptions, loggingLevel, queryExceptions, transactionCommitted, transactionRolledback
 
Constructor Summary
IteratedSelectObserver()
           
 
Method Summary
 org.objectstyle.cayenne.access.ResultIterator getResultIterator()
           
 boolean isIteratedResult()
          Returns false.
 void nextDataRows(org.objectstyle.cayenne.query.Query query, java.util.List dataRows)
          Invoked after the next query results are read.
 void nextDataRows(org.objectstyle.cayenne.query.Query q, org.objectstyle.cayenne.access.ResultIterator it)
          Invoked after the next query is invoked, if a query required results to be returned as a ResultIterator.
 
Methods inherited from class org.objectstyle.cayenne.access.util.DefaultOperationObserver
getGlobalExceptions, getLoggingLevel, getQueryExceptions, hasExceptions, isTransactionCommitted, isTransactionRolledback, nextBatchCount, nextCount, nextGlobalException, nextQueryException, printExceptions, setLoggingLevel, transactionCommitted, transactionRolledback, useAutoCommit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultIterator

protected org.objectstyle.cayenne.access.ResultIterator resultIterator
Constructor Detail

IteratedSelectObserver

public IteratedSelectObserver()
Method Detail

isIteratedResult

public boolean isIteratedResult()
Description copied from class: DefaultOperationObserver
Returns false.

Specified by:
isIteratedResult in interface org.objectstyle.cayenne.access.OperationHints
Overrides:
isIteratedResult in class DefaultOperationObserver

nextDataRows

public void nextDataRows(org.objectstyle.cayenne.query.Query query,
                         java.util.List dataRows)
Description copied from interface: org.objectstyle.cayenne.access.OperationObserver
Invoked after the next query results are read.

Specified by:
nextDataRows in interface org.objectstyle.cayenne.access.OperationObserver
Overrides:
nextDataRows in class DefaultOperationObserver

nextDataRows

public void nextDataRows(org.objectstyle.cayenne.query.Query q,
                         org.objectstyle.cayenne.access.ResultIterator it)
Description copied from interface: org.objectstyle.cayenne.access.OperationObserver
Invoked after the next query is invoked, if a query required results to be returned as a ResultIterator. OperationObserver is responsible for closing the ResultIterator.

Specified by:
nextDataRows in interface org.objectstyle.cayenne.access.OperationObserver
Overrides:
nextDataRows in class DefaultOperationObserver

getResultIterator

public org.objectstyle.cayenne.access.ResultIterator getResultIterator()
                                                                throws org.objectstyle.cayenne.CayenneException