|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SearchException | |
---|---|
org.dbunit.database.search | |
org.dbunit.util.search |
Uses of SearchException in org.dbunit.database.search |
---|
Methods in org.dbunit.database.search that throw SearchException | |
---|---|
protected static ForeignKeyRelationshipEdge |
AbstractMetaDataBasedSearchCallback.createFKEdge(java.sql.ResultSet rs,
int type,
java.lang.String from,
java.lang.String to,
java.lang.String fkColumn,
java.lang.String pkColumn)
Creates an edge representing a foreign key relationship between 2 tables. |
static IDataSet |
TablesDependencyHelper.getAllDataset(IDatabaseConnection connection,
java.util.Map rootTables)
|
static IDataSet |
TablesDependencyHelper.getAllDataset(IDatabaseConnection connection,
java.lang.String rootTable,
java.util.Set allowedPKs)
|
static java.lang.String[] |
TablesDependencyHelper.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[] |
TablesDependencyHelper.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 |
TablesDependencyHelper.getDataset(IDatabaseConnection connection,
java.util.Map rootTables)
|
static IDataSet |
TablesDependencyHelper.getDataset(IDatabaseConnection connection,
java.lang.String rootTable,
java.util.Set allowedIds)
|
static java.lang.String[] |
TablesDependencyHelper.getDependentTables(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). |
static java.lang.String[] |
TablesDependencyHelper.getDependentTables(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 one of root tables). |
java.util.SortedSet |
ImportedAndExportedKeysSearchCallback.getEdges(java.lang.Object node)
|
java.util.SortedSet |
ImportedKeysSearchCallback.getEdges(java.lang.Object node)
|
protected java.util.SortedSet |
AbstractMetaDataBasedSearchCallback.getNodesFromExportedKeys(java.lang.Object node)
Get the nodes using the reverse foreign key dependency, i.e, if table C has a FK for a table A, then getNodesFromExportedKeys(A) will return C. NOTE: this method should be used only as an auxiliary method for sub-classes that also use getNodesFromImportedKeys()
or something similiar, otherwise the generated sequence of tables might not
work when inserted in the database (as some tables might be missing). |
protected java.util.SortedSet |
AbstractMetaDataBasedSearchCallback.getNodesFromImportAndExportKeys(java.lang.Object node)
Get the nodes using the both direct and reverse foreign key dependency, i.e, if table C has a FK for a table A and table A has a FK for a table B, then getNodesFromImportAndExportedKeys(A) will return B and C. |
protected java.util.SortedSet |
AbstractMetaDataBasedSearchCallback.getNodesFromImportedKeys(java.lang.Object node)
Get the nodes using the direct foreign key dependency, i.e, if table A has a FK for a table B, then getNodesFromImportedKeys(A) will return B. |
protected IEdge |
AbstractMetaDataBasedSearchCallback.newEdge(java.sql.ResultSet rs,
int type,
java.lang.String from,
java.lang.String to,
java.lang.String fkColumn,
java.lang.String pkColumn)
This method can be overwritten by the sub-classes if they need to decorate the edge (for instance, providing an Edge that contains the primary and foreign keys used). |
protected IEdge |
ImportedAndExportedKeysSearchCallbackFilteredByPKs.newEdge(java.sql.ResultSet rs,
int type,
java.lang.String from,
java.lang.String to,
java.lang.String fkColumn,
java.lang.String pkColumn)
|
protected IEdge |
ImportedKeysSearchCallbackFilteredByPKs.newEdge(java.sql.ResultSet rs,
int type,
java.lang.String from,
java.lang.String to,
java.lang.String fkColumn,
java.lang.String pkColumn)
|
void |
ImportedAndExportedKeysSearchCallbackFilteredByPKs.nodeAdded(java.lang.Object node)
|
void |
ImportedKeysSearchCallbackFilteredByPKs.nodeAdded(java.lang.Object node)
|
Uses of SearchException in org.dbunit.util.search |
---|
Methods in org.dbunit.util.search that throw SearchException | |
---|---|
java.util.SortedSet |
ISearchCallback.getEdges(java.lang.Object fromNode)
Get the edges originating from a node. |
void |
AbstractNodesFilterSearchCallback.nodeAdded(java.lang.Object fromNode)
Do nothing... |
void |
ISearchCallback.nodeAdded(java.lang.Object fromNode)
Notifies the callback that a node has been added to the search result. |
java.util.Set |
DepthFirstSearch.search(java.lang.Object[] nodesFrom,
ISearchCallback callback)
Alternative option to search() that takes an array of nodes as input (instead of a Set) |
java.util.Set |
DepthFirstSearch.search(java.util.Set nodesFrom,
ISearchCallback callback)
|
java.util.Set |
ISearchAlgorithm.search(java.util.Set nodesFrom,
ISearchCallback callback)
Search all nodes that originates from a set of nodes. |
boolean |
AbstractNodesFilterSearchCallback.searchNode(java.lang.Object node)
|
boolean |
ISearchCallback.searchNode(java.lang.Object node)
Decides if a node should be searched or not |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |