public class TablesDependencyHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static IDataSet |
getAllDataset(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap rootTables) |
static IDataSet |
getAllDataset(IDatabaseConnection connection,
java.lang.String rootTable,
java.util.Set allowedPKs) |
static java.lang.String[] |
getAllDependentTables(IDatabaseConnection connection,
java.lang.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 java.lang.String[] |
getAllDependentTables(IDatabaseConnection connection,
java.lang.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,
PrimaryKeyFilter.PkTableMap rootTables) |
static IDataSet |
getDataset(IDatabaseConnection connection,
java.lang.String rootTable,
java.util.Set allowedIds) |
static java.lang.String[] |
getDependentTables(IDatabaseConnection connection,
java.lang.String rootTable)
Get the name of all tables that depend on the root tables (i.e, all tables that have FKs
pointing to the PK of the root table).
|
static java.lang.String[] |
getDependentTables(IDatabaseConnection connection,
java.lang.String[] rootTables)
Get the name of all tables that depend on the root tables (i.e, all tables that have FKs
pointing to the PK of one of the root tables).
|
static java.lang.String[] |
getDependsOnTables(IDatabaseConnection connection,
java.lang.String rootTable)
Get the name of all tables that the given rootTable depends on (i.e, all tables whose PK is a FK for the root table).
|
static java.util.Set |
getDirectDependentTables(IDatabaseConnection connection,
java.lang.String tableName)
Returns a set of tables which directly depend on the given table.
|
static java.util.Set |
getDirectDependsOnTables(IDatabaseConnection connection,
java.lang.String tableName)
Returns a set of tables on which the given table directly depends on.
|
public static java.lang.String[] getDependentTables(IDatabaseConnection connection, java.lang.String rootTable) throws SearchException
connection - database connectionrootTable - root table described aboveSearchException - if an exception occurred while calculating the orderpublic static java.lang.String[] getDependentTables(IDatabaseConnection connection, java.lang.String[] rootTables) throws SearchException
connection - database connectionrootTables - array of root tables described aboveSearchException - if an exception occurred while calculating the orderpublic static java.lang.String[] getDependsOnTables(IDatabaseConnection connection, java.lang.String rootTable) throws SearchException
connection - database connectionrootTable - root table described aboveSearchException - if an exception occurred while calculating the orderpublic static java.lang.String[] getAllDependentTables(IDatabaseConnection connection, java.lang.String rootTable) throws SearchException
connection - database connectionrootTable - root table described aboveSearchException - if an exception occurred while calculating the orderpublic static java.lang.String[] getAllDependentTables(IDatabaseConnection connection, java.lang.String[] rootTables) throws SearchException
connection - database connectionrootTables - root tables described aboveSearchException - if an exception occurred while calculating the orderpublic static IDataSet getDataset(IDatabaseConnection connection, java.lang.String rootTable, java.util.Set allowedIds) throws SearchException, java.sql.SQLException, DataSetException
SearchExceptionjava.sql.SQLExceptionDataSetExceptionpublic static IDataSet getDataset(IDatabaseConnection connection, PrimaryKeyFilter.PkTableMap rootTables) throws SearchException, java.sql.SQLException, DataSetException
SearchExceptionjava.sql.SQLExceptionDataSetExceptionpublic static IDataSet getAllDataset(IDatabaseConnection connection, java.lang.String rootTable, java.util.Set allowedPKs) throws SearchException, java.sql.SQLException, DataSetException
SearchExceptionjava.sql.SQLExceptionDataSetExceptionpublic static IDataSet getAllDataset(IDatabaseConnection connection, PrimaryKeyFilter.PkTableMap rootTables) throws SearchException, java.sql.SQLException, DataSetException
SearchExceptionjava.sql.SQLExceptionDataSetExceptionpublic static java.util.Set getDirectDependsOnTables(IDatabaseConnection connection, java.lang.String tableName) throws SearchException
connection - The connection to be used for the database lookup.tableName - SearchExceptionpublic static java.util.Set getDirectDependentTables(IDatabaseConnection connection, java.lang.String tableName) throws SearchException
connection - The connection to be used for the database lookup.tableName - SearchExceptionCopyright © 2002-2018. All Rights Reserved.