|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.dataset.filter.SequenceTableFilter
public class SequenceTableFilter
This filter expose a specified table sequence and can be used to reorder
tables in a dataset. This implementation does not support duplicate table names.
Thus you cannot specify the same table name more than once in this filter
and the filtered dataset must not contains duplicate table names. This is
the default filter used by the FilteredDataSet.
| Constructor Summary | |
|---|---|
SequenceTableFilter(java.lang.String[] tableNames)
Creates a new SequenceTableFilter with specified table names sequence. |
|
SequenceTableFilter(java.lang.String[] tableNames,
boolean caseSensitiveTableNames)
Creates a new SequenceTableFilter with specified table names sequence. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.String tableName)
Returns true if specified table is allowed by this filter. |
java.lang.String[] |
getTableNames(IDataSet dataSet)
Returns the table names allowed by this filter from the specified dataset. |
ITableIterator |
iterator(IDataSet dataSet,
boolean reversed)
Returns iterator of tables allowed by this filter from the specified dataset. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceTableFilter(java.lang.String[] tableNames)
throws AmbiguousTableNameException
AmbiguousTableNameException - If the given array contains ambiguous names
public SequenceTableFilter(java.lang.String[] tableNames,
boolean caseSensitiveTableNames)
throws AmbiguousTableNameException
tableNames - caseSensitiveTableNames -
AmbiguousTableNameException - If the given array contains ambiguous names| Method Detail |
|---|
public boolean accept(java.lang.String tableName)
throws DataSetException
ITableFilterSimpletrue if specified table is allowed by this filter.
accept in interface ITableFilterSimpleDataSetException
public java.lang.String[] getTableNames(IDataSet dataSet)
throws DataSetException
ITableFilter
getTableNames in interface ITableFilterdataSet - the filtered dataset
DataSetException
public ITableIterator iterator(IDataSet dataSet,
boolean reversed)
throws DataSetException
ITableFilter
iterator in interface ITableFilterdataSet - the filtered dataset
DataSetExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||