QJCC homepage

biz.chitec.quarterback.gjsa.server
Class CombinedBurstMaker

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

public class CombinedBurstMaker
extends BurstMaker

BurstMaker which combines the results of several other BurstMaker objects. Makes really sense only if getReplyPart() is called in a linearly continued fashion. Otherwise, results may vary...

Version:
$Id: 7c3d02b203bb18bfe4d294a032e20edf23e77ae2 $
Author:
chitec/Dirk Hillbrecht 2001,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  BurstMaker[] burstmakers
           
private  int currentbm
           
private  int currentinnerstart
           
private  int nextouterstart
           
 
Fields inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
loggable
 
Constructor Summary
CombinedBurstMaker(BurstMaker[] bmx)
           
CombinedBurstMaker(java.util.List bmx)
           
 
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

burstmakers

private BurstMaker[] burstmakers

currentbm

private int currentbm

currentinnerstart

private int currentinnerstart

nextouterstart

private int nextouterstart
Constructor Detail

CombinedBurstMaker

public CombinedBurstMaker(java.util.List bmx)

CombinedBurstMaker

public CombinedBurstMaker(BurstMaker[] bmx)
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()
Description copied from class: BurstMaker
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