| java.lang.Object org.dbunit.database.search.TablesDependencyHelper
TablesDependencyHelper | public class TablesDependencyHelper (Code) | | Helper for the graph-search based classes used to calculate dependency
among tables.
author: Felipe Leme version: $Revision: 554 $ since: Aug 26, 2005 |
Method Summary | |
public static IDataSet | getAllDataset(IDatabaseConnection connection, String rootTable, Set allowedPKs) | public static IDataSet | getAllDataset(IDatabaseConnection connection, Map rootTables) | public static String[] | getAllDependentTables(IDatabaseConnection connection, String rootTable) Get the name of all tables that depend on a root table ( i.e, all tables whose PK
is a FK for the root table) and also the tables the root table depends on
(i.e., all tables which have a FK for the root table's PK). | public static String[] | getAllDependentTables(IDatabaseConnection connection, String[] rootTables) Get the name of all tables that depend on the root tables ( i.e, all tables whose PK
is a FK for any of the root tables) and also the tables the root tables depends on
(i.e., all tables which have a FK for any of the root table's PK). | public static IDataSet | getDataset(IDatabaseConnection connection, String rootTable, Set allowedIds) | public static IDataSet | getDataset(IDatabaseConnection connection, Map rootTables) | public static String[] | getDependentTables(IDatabaseConnection connection, String rootTable) Get the name of all tables that depend on a root table (i.e, all tables whose PK
is a FK for the root table). | public static String[] | getDependentTables(IDatabaseConnection connection, String[] rootTables) Get the name of all tables that depend on the root tables (i.e, all tables whose PK
is a FK for one of root tables). |
getAllDependentTables | public static String[] getAllDependentTables(IDatabaseConnection connection, String rootTable) throws SearchException(Code) | | Get the name of all tables that depend on a root table ( i.e, all tables whose PK
is a FK for the root table) and also the tables the root table depends on
(i.e., all tables which have a FK for the root table's PK).
Parameters: connection - database conncetion Parameters: rootTable - root table described above name of all tables that depend on the root table (including the root table), in the right order for insertions throws: SearchException - if an exception occurred while calculating the order |
getAllDependentTables | public static String[] getAllDependentTables(IDatabaseConnection connection, String[] rootTables) throws SearchException(Code) | | Get the name of all tables that depend on the root tables ( i.e, all tables whose PK
is a FK for any of the root tables) and also the tables the root tables depends on
(i.e., all tables which have a FK for any of the root table's PK).
Parameters: connection - database conncetion Parameters: rootTables - root tables described above name of all tables that depend on the root tables (including the root tables), in the right order for insertions throws: SearchException - if an exception occurred while calculating the order |
getDependentTables | public static String[] getDependentTables(IDatabaseConnection connection, String rootTable) throws SearchException(Code) | | Get the name of all tables that depend on a root table (i.e, all tables whose PK
is a FK for the root table).
Parameters: connection - database conncetion Parameters: rootTable - root table described above name of all tables that depend on the root table (including the root table), in the right order for insertions throws: SearchException - if an exception occurred while calculating the order |
getDependentTables | public static String[] getDependentTables(IDatabaseConnection connection, String[] rootTables) throws SearchException(Code) | | Get the name of all tables that depend on the root tables (i.e, all tables whose PK
is a FK for one of root tables).
Parameters: connection - database conncetion Parameters: rootTables - array of root tables described above name of all tables that depend on the root tables (including the root tables), in the right order for insertions throws: SearchException - if an exception occurred while calculating the order |
|
|