|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.xml.FlatDtdDataSet
public class FlatDtdDataSet
| Field Summary |
|---|
| Fields inherited from class org.dbunit.dataset.AbstractDataSet |
|---|
_orderedTableNameMap |
| Constructor Summary | |
|---|---|
FlatDtdDataSet()
|
|
FlatDtdDataSet(IDataSetProducer producer)
|
|
FlatDtdDataSet(java.io.InputStream in)
|
|
FlatDtdDataSet(java.io.Reader reader)
|
|
| Method Summary | |
|---|---|
protected ITableIterator |
createIterator(boolean reversed)
Creates an iterator which provides access to all tables of this dataset |
void |
endDataSet()
Receive notification of the end of a dataset. |
void |
endTable()
Receive notification of the end of a table. |
ITable |
getTable(java.lang.String tableName)
Returns the specified table. |
ITableMetaData |
getTableMetaData(java.lang.String tableName)
Returns the specified table metadata. |
java.lang.String[] |
getTableNames()
Returns names of tables in this dataset in proper sequence. |
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. |
java.lang.String |
toString()
|
static void |
write(IDataSet dataSet,
java.io.OutputStream out)
Write the specified dataset to the specified output stream as DTD. |
static void |
write(IDataSet dataSet,
java.io.Writer out)
Write the specified dataset to the specified writer as DTD. |
| Methods inherited from class org.dbunit.dataset.AbstractDataSet |
|---|
createTableNameMap, getTables, isCaseSensitiveTableNames, iterator, reverseIterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FlatDtdDataSet()
public FlatDtdDataSet(java.io.InputStream in)
throws DataSetException,
java.io.IOException
DataSetException
java.io.IOException
public FlatDtdDataSet(java.io.Reader reader)
throws DataSetException,
java.io.IOException
DataSetException
java.io.IOException
public FlatDtdDataSet(IDataSetProducer producer)
throws DataSetException
DataSetException| Method Detail |
|---|
public static void write(IDataSet dataSet,
java.io.OutputStream out)
throws java.io.IOException,
DataSetException
java.io.IOException
DataSetExceptionFlatDtdWriter
public static void write(IDataSet dataSet,
java.io.Writer out)
throws java.io.IOException,
DataSetException
java.io.IOException
DataSetExceptionFlatDtdWriter
protected ITableIterator createIterator(boolean reversed)
throws DataSetException
AbstractDataSet
createIterator in class AbstractDataSetreversed - Whether the created iterator should be a reversed one or not
ITableIterator
DataSetException
public java.lang.String[] getTableNames()
throws DataSetException
IDataSet
getTableNames in interface IDataSetgetTableNames in class AbstractDataSetDataSetException
public ITableMetaData getTableMetaData(java.lang.String tableName)
throws DataSetException
IDataSet
getTableMetaData in interface IDataSetgetTableMetaData in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
table
DataSetException
public ITable getTable(java.lang.String tableName)
throws DataSetException
IDataSet
getTable in interface IDataSetgetTable in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
table
DataSetException
public void startDataSet()
throws DataSetException
IDataSetConsumer
startDataSet in interface IDataSetConsumerDataSetException
public void endDataSet()
throws DataSetException
IDataSetConsumer
endDataSet in interface IDataSetConsumerDataSetException
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
public void row(java.lang.Object[] values)
throws DataSetException
IDataSetConsumer
row in interface IDataSetConsumervalues - The row values.
DataSetExceptionpublic java.lang.String toString()
toString in class AbstractDataSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||