Class DepcyFinder
java.lang.Object
org.pgcodekeeper.core.model.graph.DepcyFinder
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 Summary
Modifier and TypeMethodDescriptionbyPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, IDatabase db, Collection<String> names) Finds dependencies by matching object name patterns.byPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, IDatabase db, Collection<String> names, Collection<Dependency> additionalDependencies) Finds dependencies by matching object name patterns with additional dependencies.byStatement(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, IStatement st) Finds dependencies for a specific database statement.byStatement(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, IStatement st, Collection<Dependency> additionalDependencies) Finds dependencies for a specific database statement with additional dependencies.
-
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 searchisReverse- whether to search reverse dependenciesfilterObjTypes- object types to filter byisInvertFilter- whether to invert the filterdb- the database to search innames- collection of name patterns to match- Returns:
- list of formatted dependency strings
-
byPatterns
public static List<String> byPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, IDatabase db, Collection<String> names, Collection<Dependency> additionalDependencies) Finds dependencies by matching object name patterns with additional dependencies.- Parameters:
depth- maximum depth to searchisReverse- whether to search reverse dependenciesfilterObjTypes- object types to filter byisInvertFilter- whether to invert the filterdb- the database to search innames- collection of name patterns to matchadditionalDependencies- collection of additional dependencies- 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 searchisReverse- whether to search reverse dependenciesfilterObjTypes- object types to filter byst- the statement to find dependencies for- Returns:
- list of formatted dependency strings
-
byStatement
public static List<String> byStatement(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, IStatement st, Collection<Dependency> additionalDependencies) Finds dependencies for a specific database statement with additional dependencies.- Parameters:
depth- maximum depth to searchisReverse- whether to search reverse dependenciesfilterObjTypes- object types to filter byst- the statement to find dependencies foradditionalDependencies- collection of additional dependencies- Returns:
- list of formatted dependency strings
-