org.dbunit.database.search
Class ExportedKeysSearchCallback

java.lang.Object
  extended by org.dbunit.util.search.AbstractNodesFilterSearchCallback
      extended by org.dbunit.database.search.AbstractMetaDataBasedSearchCallback
          extended by org.dbunit.database.search.ExportedKeysSearchCallback
All Implemented Interfaces:
ISearchCallback

public class ExportedKeysSearchCallback
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(B) will return A.

Since:
2.4.0
Version:
$Revision: 843 $ $Date: 2008-10-26 06:06:28 -0500 (Sun, 26 Oct 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

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
ExportedKeysSearchCallback(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

ExportedKeysSearchCallback

public ExportedKeysSearchCallback(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.