org.dbunit.database.search
Class ImportedAndExportedKeysSearchCallback

java.lang.Object
  extended by org.dbunit.util.search.AbstractNodesFilterSearchCallback
      extended by org.dbunit.database.search.AbstractMetaDataBasedSearchCallback
          extended by org.dbunit.database.search.ImportedAndExportedKeysSearchCallback
All Implemented Interfaces:
ISearchCallback
Direct Known Subclasses:
ImportedAndExportedKeysSearchCallbackFilteredByPKs

public class ImportedAndExportedKeysSearchCallback
extends AbstractMetaDataBasedSearchCallback

ISearchCallback implementation that get the nodes using 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 getNodes(A) will return B and C.

Since:
Aug 25, 2005
Version:
$Revision: 769 $
Author:
Felipe Leme (dbunit@felipeal.net)

Field Summary
 
Fields inherited from class org.dbunit.database.search.AbstractMetaDataBasedSearchCallback
EXPORT, FK_INDEXES, IMPORT, PK_INDEXES, TABLENAME_INDEXES
 
Fields inherited from class org.dbunit.util.search.AbstractNodesFilterSearchCallback
ALLOW_MODE, DENY_MODE, NO_MODE
 
Constructor Summary
ImportedAndExportedKeysSearchCallback(IDatabaseConnection connection)
           
 
Method Summary
 java.util.SortedSet getEdges(java.lang.Object node)
          Get the edges originating from a node.
 
Methods inherited from class org.dbunit.database.search.AbstractMetaDataBasedSearchCallback
createFKEdge, getConnection, getNodesFromExportedKeys, getNodesFromImportAndExportKeys, getNodesFromImportedKeys, newEdge
 
Methods inherited from class org.dbunit.util.search.AbstractNodesFilterSearchCallback
getFilteredNodes, getFilteringMode, nodeAdded, searchNode, setAllowedNodes, setAllowedNodes, setDeniedNodes, setDeniedNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportedAndExportedKeysSearchCallback

public ImportedAndExportedKeysSearchCallback(IDatabaseConnection connection)
Method Detail

getEdges

public java.util.SortedSet getEdges(java.lang.Object node)
                             throws SearchException
Description copied from interface: ISearchCallback
Get the edges originating from a node.

Parameters:
node - node from
Returns:
all edges originating from this node.
Throws:
SearchException


Copyright © 2002-2008. All Rights Reserved.