|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.gjsa.server.BurstMaker
"Brain" of a burst. BurstMaker objects' getReplyPart or getCompleteReply method are called from Burster.run() to obtain a part of a bursted answer. A non-abstract derived object only has to implement getReplyPart. What to do there is up to the implementation. Burster will stop calling BurstMaker as soon as getReplyPart returns less entries in the List as possible.
Nested Class Summary | |
private class |
BurstMaker.BurstMakerIterator
Implementation of Iterator to loop over the BurstMaker using methods of the Collection framework. |
private class |
BurstMaker.ElementWiseIterator
Wrapper around a BurstMakerIterator which allows a truly elementwise access to the burst. |
Field Summary | |
protected boolean |
loggable
marker whether this is a loggable burster. |
private int |
refnr
reference number of this burst (only for asynchonous bursts). |
Constructor Summary | |
BurstMaker()
|
Method Summary | |
java.util.Iterator |
burstIterator()
Returns an iterator over the BurstMaker's content returning 50 elements on each call. |
java.util.Iterator |
burstIterator(int elementcount)
Returns an iterator over the BurstMaker's content. |
java.util.Iterator |
elementIterator()
Returns an element-wise iterator which uses bursts with 50 elements. |
java.util.Iterator |
elementIterator(int elementcount)
Returns an element-wise iterator over the BurstMaker's content. |
java.util.List |
getCompleteReply()
computes the complete reply, but at most 400 lines of it. |
java.util.List |
getCompleteReply(int maxdatacount)
Computes all reply rows at once, but at most maxdatacount of it. |
int |
getRefNr()
returns this bursts reference number. |
abstract java.util.List |
getReplyPart(int start,
int num)
constructs a part of the answer. |
boolean |
isLoggable()
returns whether the answer should be logged |
java.util.Iterator |
iterator(boolean byelement)
Returns either a burst-wise or an element-wise iterator with 50 burst elements. |
java.util.Iterator |
iterator(boolean byelement,
int elementcount)
Returns either a burst-wise or an element-wise iterator on the content of the burst. |
abstract boolean |
linearContinueable()
returns whether more data is available. |
void |
setLoggable(boolean lx)
Sets the logging flag |
void |
setRefNr(int rn)
sets this bursts reference number. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int refnr
protected boolean loggable
Constructor Detail |
public BurstMaker()
Method Detail |
public void setRefNr(int rn)
public int getRefNr()
public void setLoggable(boolean lx)
public boolean isLoggable()
public abstract java.util.List getReplyPart(int start, int num) throws java.sql.SQLException
java.sql.SQLException
public abstract boolean linearContinueable()
public java.util.List getCompleteReply(int maxdatacount) throws java.sql.SQLException
maxdatacount
- The maximum number of returned rows.
java.sql.SQLException
public java.util.List getCompleteReply() throws java.sql.SQLException
java.sql.SQLException
public java.util.Iterator burstIterator(int elementcount)
elementcount
- Number of elements
public java.util.Iterator burstIterator()
public java.util.Iterator elementIterator(int elementcount)
elementcount
- Internally used burst size
public java.util.Iterator elementIterator()
public java.util.Iterator iterator(boolean byelement, int elementcount)
byelement
- Flag whether to return an element- or a burst-wise iterator.elementcount
- Elements in the underlying bursts.
public java.util.Iterator iterator(boolean byelement)
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |