QJCC homepage

biz.chitec.quarterback.gjsa.server
Class IteratorBurstMaker

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.server.BurstMaker
      extended bybiz.chitec.quarterback.gjsa.server.IteratorBurstMaker

public class IteratorBurstMaker
extends BurstMaker

Iterator based burst maker. Bursts through an iterator. Allows linear continuable bursts only. Note that the size value is not used for anything here. The List is only used as storage for the data returned by the Iterator.

This class is a quite ugly klugde. Somewhen in the future, the BurstMaker concept should be revamped and the whole BurstMaker should be built upon the collection scheme - and not vice versa.

Version:
$Id: a7d5e13ab23164b8308626ccefebe2d325e5c776 $
Author:
chitec/Dirk Hillbrecht 2002. Distributed under the terms of the GNU LGPL.

Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
 
Field Summary
private  int currentstart
           
private  java.util.Iterator it
           
 
Fields inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
loggable
 
Constructor Summary
IteratorBurstMaker(java.util.Iterator itx)
           
 
Method Summary
 java.util.List getReplyPart(int start, int num)
          constructs a part of the answer.
 boolean linearContinueable()
          returns whether more data is available.
 
Methods inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
burstIterator, burstIterator, elementIterator, elementIterator, getCompleteReply, getCompleteReply, getRefNr, isLoggable, iterator, iterator, setLoggable, setRefNr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

it

private java.util.Iterator it

currentstart

private int currentstart
Constructor Detail

IteratorBurstMaker

public IteratorBurstMaker(java.util.Iterator itx)
Method Detail

getReplyPart

public java.util.List getReplyPart(int start,
                                   int num)
                            throws java.sql.SQLException
Description copied from class: BurstMaker
constructs a part of the answer. This method must be implemented by any actual BurstMaker.

Specified by:
getReplyPart in class BurstMaker
Throws:
java.sql.SQLException

linearContinueable

public boolean linearContinueable()
returns whether more data is available. This method returns true if another getReplyPart() call is possible where start is start+num of the last call.

Specified by:
linearContinueable in class BurstMaker

QJCC homepage