|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.dataset.stream.BufferedConsumer
public class BufferedConsumer
Implementation of IDataSetConsumer which buffers all data
until the endDataSet() event occurs.
This provides the possibility to append new Columns on
the fly which is needed for the column sensing feature in
FlatXmlDataSet.
| Constructor Summary | |
|---|---|
BufferedConsumer(IDataSetConsumer wrappedConsumer)
|
|
| Method Summary | |
|---|---|
void |
endDataSet()
Receive notification of the end of a dataset. |
void |
endTable()
Receive notification of the end of a table. |
void |
row(java.lang.Object[] values)
Receive notification of a table row. |
void |
startDataSet()
Receive notification of the beginning of a dataset. |
void |
startTable(ITableMetaData metaData)
Receive notification of the beginning of a table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedConsumer(IDataSetConsumer wrappedConsumer)
wrappedConsumer - The consumer that is wrapped| Method Detail |
|---|
public void startDataSet()
throws DataSetException
IDataSetConsumer
startDataSet in interface IDataSetConsumerDataSetException
public void endDataSet()
throws DataSetException
IDataSetConsumer
endDataSet in interface IDataSetConsumerDataSetException
public void row(java.lang.Object[] values)
throws DataSetException
IDataSetConsumer
row in interface IDataSetConsumervalues - The row values.
DataSetException
public void startTable(ITableMetaData metaData)
throws DataSetException
IDataSetConsumerIDataSetConsumer.endDataSet() event for every startTable
event (even when the table is empty).
startTable in interface IDataSetConsumermetaData - the table metadata
DataSetException
public void endTable()
throws DataSetException
IDataSetConsumer
endTable in interface IDataSetConsumerDataSetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||