Class 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$
Author:
Felipe Leme (dbunit@felipeal.net)
  • Constructor Details

    • ImportedKeysSearchCallback

      public ImportedKeysSearchCallback(IDatabaseConnection connection)
      Creates a callback that gets the nodes reachable via imported (direct) foreign keys.
      Parameters:
      connection - connection where the edges will be calculated from.
  • Method Details

    • 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 - if the edges originating from the node cannot be determined.