public final class LocalScopes extends Object
DlineageUtil.getProcedureParentName makes (the statement itself when it is a named routine, else
the enclosing one, a block's owner included), but read from the routine's model, never re-composed from text with
the session's defaults of the moment.| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
chainOf(ModelBindingManager manager,
TCustomSqlStatement stmt)
The scopes a statement's references see, innermost first: its routine's, the enclosing routines' (nested
routines), then the package's.
|
static TCustomSqlStatement |
routineOf(TCustomSqlStatement stmt)
The routine statement a statement's local symbols belong to, or null at top level.
|
static Object |
scopeOf(ModelBindingManager manager,
Procedure procedure)
The frozen scope of a routine model: its display key, qualified by its package's; a routine declared inside
another routine is scoped inside that routine's scope, so same-named nested routines of two routines are two
scopes.
|
static Object |
scopeOf(ModelBindingManager manager,
TCustomSqlStatement stmt)
The scope of a statement's local symbols: its routine's frozen scope; a package's own key for declarations at
package level (a package is a named routine statement with no routine model); null at top level.
|
public static TCustomSqlStatement routineOf(TCustomSqlStatement stmt)
public static Object scopeOf(ModelBindingManager manager, Procedure procedure)
public static List<Object> chainOf(ModelBindingManager manager, TCustomSqlStatement stmt)
public static Object scopeOf(ModelBindingManager manager, TCustomSqlStatement stmt)