org.dbunit.database.search
Class ImportedKeysSearchCallback

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

public class ImportedKeysSearchCallback
extends AbstractMetaDataBasedSearchCallback

ISearchCallback implementation that get the nodes using direct foreign key dependency, i.e, if table A has a FK for a table B, then getNodes(A) will return B.

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, SCHEMANAME_INDEXES, TABLENAME_INDEXES
 
Fields inherited from class org.dbunit.util.search.AbstractNodesFilterSearchCallback
ALLOW_MODE, DENY_MODE, NO_MODE
 
Constructor Summary
ImportedKeysSearchCallback(IDatabaseConnection connection)
           
 
Method Summary
 SortedSet getEdges(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

ImportedKeysSearchCallback

public ImportedKeysSearchCallback(IDatabaseConnection connection)
Method Detail

getEdges

public SortedSet getEdges(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-2012. All Rights Reserved.