|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.database.search.TablesDependencyHelper
public class TablesDependencyHelper
Helper for the graph-search based classes used to calculate dependency among tables.
Method Summary | |
---|---|
static IDataSet |
getAllDataset(IDatabaseConnection connection,
Map rootTables)
|
static IDataSet |
getAllDataset(IDatabaseConnection connection,
String rootTable,
Set allowedPKs)
|
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). |
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). |
static IDataSet |
getDataset(IDatabaseConnection connection,
Map rootTables)
|
static IDataSet |
getDataset(IDatabaseConnection connection,
String rootTable,
Set allowedIds)
|
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). |
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String[] getDependentTables(IDatabaseConnection connection, String rootTable) throws SearchException
connection
- database conncetionrootTable
- root table described above
SearchException
- if an exception occurred while calculating the orderpublic static String[] getDependentTables(IDatabaseConnection connection, String[] rootTables) throws SearchException
connection
- database conncetionrootTables
- array of root tables described above
SearchException
- if an exception occurred while calculating the orderpublic static String[] getAllDependentTables(IDatabaseConnection connection, String rootTable) throws SearchException
connection
- database conncetionrootTable
- root table described above
SearchException
- if an exception occurred while calculating the orderpublic static String[] getAllDependentTables(IDatabaseConnection connection, String[] rootTables) throws SearchException
connection
- database conncetionrootTables
- root tables described above
SearchException
- if an exception occurred while calculating the orderpublic static IDataSet getDataset(IDatabaseConnection connection, String rootTable, Set allowedIds) throws SearchException, SQLException
SearchException
SQLException
public static IDataSet getDataset(IDatabaseConnection connection, Map rootTables) throws SearchException, SQLException
SearchException
SQLException
public static IDataSet getAllDataset(IDatabaseConnection connection, String rootTable, Set allowedPKs) throws SearchException, SQLException
SearchException
SQLException
public static IDataSet getAllDataset(IDatabaseConnection connection, Map rootTables) throws SearchException, SQLException
SearchException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |