Graph model
Node types
Every node carries a type tag in CLI output and all export formats. A * suffix is a qualifier whose meaning depends on the type: for table* / view* / seq* it means inferred (referenced by DML, no DDL definition found); for proc* / func* it means the procedure/function body could not be fully parsed.
| Tag | Meaning | Notes |
|---|---|---|
proc / proc* | Stored procedure | * = incomplete body parse |
func / func* | Function | * = incomplete body parse |
table / table* | Table | * = referenced in DML, no DDL |
view / view* | View | * = referenced in DML, no DDL |
seq / seq* | Sequence | * = referenced, no DDL |
pkg | Package | |
trigger | Trigger | |
type | Custom type | |
index | Index | |
mview | Materialized view | |
synonym | Synonym | |
event | Event | |
builtin | Built-in SQL function | Subtypes in JSON: builtin:func, builtin:op, builtin:hint, builtin:special |
unres | Unresolved reference | Dynamic or unmatched call target |
mapper | MyBatis/iBatis mapped statement | |
method | Java method | |
class | Java class | |
sql | SQL embedded in Java | From annotations or JDBC calls |
jsp | JSP page | Requires the jsp feature |
jspsql | SQL embedded in JSP | Requires the jsp feature |
custom | Imported custom node | Created via CGEF import |
Tables and views that live in known system schemas (pg_catalog, sys, dbe_*, …) or are well-known system names (dual, sys_dummy) are flagged system: true in JSON output; codeweb nodes --system filters for them.
Node keys
Nodes are identified by a NodeKey string that combines name, type, and location of origin:
- SQL objects:
type:schema.name(for exampletable:public.orders); routines include the package when defined in one. - Java methods: the fully qualified name including the class (
com.example.OrderService.createOrder). - Mappers:
namespace.id(com.example.OrderMapper.insertOrder).
Substring search in trace, detail, inspect, and impact matches against these keys. Use --exact for a case-insensitive exact match, --regex for regular expressions, and --fail-on-multiple to refuse ambiguous matches.
Edge kinds
| Edge | Connects | Meaning |
|---|---|---|
DirectCall | procedure → procedure | Static CALL / PERFORM |
DynamicCall | procedure → unresolved | EXECUTE IMMEDIATE with a non-literal target |
CallsProcedure | mapper / Java / JSP SQL → procedure | SQL body calls a stored procedure |
InvokesMapper | Java method → mapped statement | Mapper id call or interface binding |
CallsJava | SQL / procedure → Java method | Outbound call into Java |
UsesBuiltinFunction | routine → built-in | COUNT, SUBSTR, operators, hints |
ContainsMethod | class → method | Java class structure |
ContainsSql | Java method → JavaSql | Method owns embedded SQL |
Extends / Implements | class → class | Java inheritance |
TableAccess | routine / statement → table | Read/write with access modes and write kinds |
DependsOn | node → node | Structural dependency (views, synonyms) |
ContainsRoutine | package → routine | Package body membership |
TriggersRoutine | trigger → routine | Trigger fires routine |
ReferencesType / UsesSequence / IndexesTable / AliasesObject | routine → object | DDL references |
AnchorsOn | routine → table/column | %TYPE / %ROWTYPE schema anchor; excluded from lineage, conflicts, and --summarize-tables |
CustomEdge | any → any | Imported via CGEF with a custom type name |
For traversal, edges fold into five categories: call, composition, dataflow, reference, inheritance. These are the values accepted by codeweb impact --edge-types and by the edge_categories field of the query engine.