org.dbunit.database
Class DatabaseSequenceFilter

java.lang.Object
  extended by org.dbunit.dataset.filter.SequenceTableFilter
      extended by org.dbunit.database.DatabaseSequenceFilter
All Implemented Interfaces:
ITableFilter, ITableFilterSimple

public class DatabaseSequenceFilter
extends SequenceTableFilter

This filter orders tables using dependency information provided by DatabaseMetaData.getExportedKeys(java.lang.String, java.lang.String, java.lang.String). Note that this class name is a bit misleading since it is not at all related to database sequences. It just brings database tables in a specific order.

Since:
1.5.1 (Mar 23, 2003)
Version:
$Revision: 1086 $ $Date: 2009-10-30 05:50:38 -0500 (Fri, 30 Oct 2009) $
Author:
Manuel Laflamme, Erik Price, Last changed by: $Author: gommma $

Constructor Summary
DatabaseSequenceFilter(IDatabaseConnection connection)
          Create a DatabaseSequenceFilter that exposes all the database tables.
DatabaseSequenceFilter(IDatabaseConnection connection, String[] tableNames)
          Create a DatabaseSequenceFilter that only exposes specified table names.
 
Method Summary
 
Methods inherited from class org.dbunit.dataset.filter.SequenceTableFilter
accept, getTableNames, iterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseSequenceFilter

public DatabaseSequenceFilter(IDatabaseConnection connection,
                              String[] tableNames)
                       throws DataSetException,
                              SQLException
Create a DatabaseSequenceFilter that only exposes specified table names.

Throws:
DataSetException
SQLException

DatabaseSequenceFilter

public DatabaseSequenceFilter(IDatabaseConnection connection)
                       throws DataSetException,
                              SQLException
Create a DatabaseSequenceFilter that exposes all the database tables.

Throws:
DataSetException
SQLException


Copyright © 2002-2012. All Rights Reserved.