Class DepcyFinder

java.lang.Object
org.pgcodekeeper.core.model.graph.DepcyFinder

public class DepcyFinder extends Object
Database dependency finder for analyzing object dependencies. Provides methods to find dependencies by patterns or specific statements with support for filtering by object types and depth control.
  • Method Details

    • byPatterns

      public static List<String> byPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, IDatabase db, Collection<String> names)
      Finds dependencies by matching object name patterns.
      Parameters:
      depth - maximum depth to search
      isReverse - whether to search reverse dependencies
      filterObjTypes - object types to filter by
      isInvertFilter - whether to invert the filter
      db - the database to search in
      names - collection of name patterns to match
      Returns:
      list of formatted dependency strings
    • byStatement

      public static List<String> byStatement(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, IStatement st)
      Finds dependencies for a specific database statement.
      Parameters:
      depth - maximum depth to search
      isReverse - whether to search reverse dependencies
      filterObjTypes - object types to filter by
      st - the statement to find dependencies for
      Returns:
      list of formatted dependency strings