| Package | Description |
|---|---|
| gudusoft.gsqlparser.catalog.input.model | |
| gudusoft.gsqlparser.catalog.runtime | |
| gudusoft.gsqlparser.dlineage.routine |
| Modifier and Type | Method and Description |
|---|---|
CatalogObjectKind |
RoutineModel.kind() |
| Modifier and Type | Method and Description |
|---|---|
RoutineModel.Builder |
RoutineModel.Builder.kind(CatalogObjectKind v) |
| Modifier and Type | Method and Description |
|---|---|
CatalogObjectKind |
CatalogParentConstraint.exactKind()
The single kind, when this constraint names exactly one; null for a family.
|
CatalogObjectKind |
CatalogLookupName.Slot.getKind()
The entity kind for an OBJECT slot.
|
CatalogObjectKind |
CatalogObjectKey.Component.getKind()
The entity kind, non-null exactly when the role is
IdentifierComponentRole.OBJECT. |
CatalogObjectKind |
CatalogLookupName.getTerminalKind() |
CatalogObjectKind |
CatalogObjectKey.getTerminalKind()
What the name as a whole denotes.
|
CatalogObjectKind |
CatalogQualifiedName.kind() |
CatalogObjectKind |
CatalogEntry.kind() |
CatalogObjectKind |
CatalogBinding.kind() |
static CatalogObjectKind |
CatalogObjectKind.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CatalogObjectKind[] |
CatalogObjectKind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Set<CatalogObjectKind> |
CatalogParentConstraint.allowedKinds() |
Optional<CatalogObjectKind> |
CatalogResolutionResult.kind() |
Set<CatalogObjectKind> |
CatalogQuery.requestedKinds() |
| Modifier and Type | Method and Description |
|---|---|
CatalogQuery.Builder |
CatalogQuery.Builder.addRequestedKind(CatalogObjectKind v) |
boolean |
CatalogParentConstraint.admits(CatalogObjectKind kind) |
CatalogLookupName |
CatalogLookupName.Builder.build(CatalogObjectKind terminalKind) |
static CatalogObjectKey |
CatalogObjectKey.childObject(IdentifierService service,
CatalogObjectKey parent,
CatalogObjectKind childKind,
String localName,
IdentifierInputForm form)
An index, constraint or package member of an already-identified parent object.
|
List<CatalogEntry> |
CatalogSnapshot.children(CatalogObjectId parent,
CatalogObjectKind kind) |
List<CatalogEntry> |
InMemoryCatalogSnapshot.children(CatalogObjectId parent,
CatalogObjectKind kind) |
static ESQLDataObjectType |
CatalogIdentifierPolicy.comparisonTypeOfKind(CatalogObjectKind kind)
The comparison/quoting
ESQLDataObjectType for an object of this entity kind — the
SINGLE owner of this mapping (stage S0R of
docs/refactor/identifier_identity_display_separation_plan.md). |
static CatalogParentConstraint |
CatalogParentConstraint.exactly(CatalogObjectKind kind)
Exactly one kind — for a caller whose metadata genuinely states it.
|
Optional<CatalogEntry> |
CatalogSnapshot.find(CatalogQualifiedName name,
CatalogObjectKind kind) |
Optional<CatalogEntry> |
InMemoryCatalogSnapshot.find(CatalogQualifiedName name,
CatalogObjectKind kind) |
Optional<CatalogEntry> |
CatalogOverlay.find(CatalogQualifiedName name,
CatalogObjectKind kind) |
Optional<CatalogEntry> |
InMemoryCatalogOverlay.find(CatalogQualifiedName name,
CatalogObjectKind kind) |
List<CatalogEntry> |
CatalogRuntime.findChildren(CatalogObjectId parent,
CatalogObjectKind kind)
Children of
parent restricted to kind, drawing from the lazy
children map captured at fetch time and (additively) the cached snapshot. |
CatalogEntry |
CatalogRuntime.findEntry(CatalogQualifiedName name,
CatalogObjectKind kind)
Walk overlay → lazy cache → snapshot in resolver-precedence order and return the
first matching
CatalogEntry. |
static CatalogQualifiedName |
CatalogIdentifierPolicy.fromAlreadyNormalizedSegments(List<String> segments,
CatalogObjectKind kind,
EDbVendor vendor)
Build a
CatalogQualifiedName from segments that have already been normalized
by IdentifierService. |
static boolean |
CatalogNameGrammar.isObjectKind(CatalogObjectKind kind)
Whether a kind may be carried by an OBJECT component.
|
static boolean |
CatalogNameGrammar.isRelation(CatalogObjectKind kind)
Whether this kind owns columns.
|
CatalogEntries.Builder |
CatalogEntries.Builder.kind(CatalogObjectKind v) |
static boolean |
CatalogNameGrammar.mayContainObject(CatalogObjectKind container,
CatalogObjectKind child)
Whether
container may directly contain child as an object — the ONE transition
table, shared by resolved identities and lookups so the two cannot disagree about what nests. |
static CatalogParentConstraint |
CatalogNameGrammar.nestedParentFamilyFor(CatalogObjectKind childKind)
The family a NESTED object of this kind must have as its parent.
|
CatalogLookupName.Builder |
CatalogLookupName.Builder.object(CatalogObjectKind kind,
String text,
IdentifierInputForm form)
A named object level, with its entity kind.
|
static CatalogObjectKey |
CatalogObjectKey.objectInCatalogOnly(IdentifierService service,
CatalogObjectKey parentCatalog,
CatalogObjectKind kind,
String localName,
IdentifierInputForm form)
An object directly inside a catalog, for a schemaless topology such as MySQL's.
|
static CatalogObjectKey |
CatalogObjectKey.objectInSchema(IdentifierService service,
CatalogObjectKey parentSchema,
CatalogObjectKind kind,
String localName,
IdentifierInputForm form)
An object inside an already-identified schema.
|
static CatalogEntry |
CatalogEntries.of(CatalogObjectId id,
CatalogQualifiedName name,
CatalogObjectKind kind) |
static CatalogEntry |
CatalogEntries.of(CatalogObjectId id,
CatalogQualifiedName name,
CatalogObjectKind kind,
Map<String,Object> properties) |
static CatalogBinding |
CatalogBindings.of(CatalogQualifiedName resolvedName,
CatalogObjectId id,
CatalogObjectKind kind) |
static CatalogBinding |
CatalogBindings.of(CatalogQualifiedName resolvedName,
CatalogObjectId id,
CatalogObjectKind kind,
Map<String,Object> properties) |
static CatalogLookupName |
CatalogLookupName.ofDeclaredLayout(List<String> components,
CatalogNameLayout layout,
IdentifierInputForm form,
CatalogObjectKind terminalKind,
CatalogHierarchy hierarchy)
Parses a FLAT name under a layout the caller DECLARES, against a topology the caller DECLARES.
|
static CatalogParentConstraint |
CatalogNameGrammar.parentConstraintFor(CatalogObjectKind childKind)
Deprecated.
renamed to
CatalogNameGrammar.nestedParentFamilyFor(gudusoft.gsqlparser.catalog.runtime.CatalogObjectKind), which says what it actually answers. |
static CatalogQualifiedName |
CatalogIdentifierPolicy.parse(String raw,
CatalogObjectKind kind,
IdentifierConfig cfg,
EDbVendor vendor)
Parse a possibly-quoted, possibly-multi-segment qualified name into a
CatalogQualifiedName with both raw and normalized segments tracked. |
boolean |
CatalogNameLayout.permitsTerminalKind(CatalogObjectKind kind)
Whether this layout may be used to seek that kind of object.
|
static CatalogObjectKey |
CatalogObjectKey.rootObject(IdentifierService service,
CatalogHierarchy hierarchy,
CatalogObjectKind kind,
String localName,
IdentifierInputForm form)
An object at the root of a topology with no container levels at all.
|
static void |
CatalogNameGrammar.validateLookup(List<CatalogLookupName.Slot> slots,
CatalogObjectKind terminalKind,
CatalogHierarchy hierarchy,
String databaseLink,
IdentifierInputForm linkForm,
CatalogParentConstraint parentConstraint)
Validates a LOOKUP.
|
static void |
CatalogNameGrammar.validateResolvedIdentity(List<IdentifierComponentRole> roles,
List<CatalogObjectKind> kinds,
CatalogObjectKind terminalKind,
CatalogHierarchy hierarchy)
Validates a RESOLVED identity: legal roles, legal nesting, and COMPLETE against the declared
topology.
|
CatalogQualifiedName |
CatalogQualifiedName.withKind(CatalogObjectKind newKind)
Return a copy of this name with a different
CatalogObjectKind. |
| Modifier and Type | Method and Description |
|---|---|
static void |
CatalogNameGrammar.validateResolvedIdentity(List<IdentifierComponentRole> roles,
List<CatalogObjectKind> kinds,
CatalogObjectKind terminalKind,
CatalogHierarchy hierarchy)
Validates a RESOLVED identity: legal roles, legal nesting, and COMPLETE against the declared
topology.
|
| Modifier and Type | Method and Description |
|---|---|
CatalogObjectKind |
RoutineName.getKind() |
CatalogObjectKind |
RoutineDeclaration.getNamespace() |
| Modifier and Type | Method and Description |
|---|---|
static RoutineName |
RoutineName.declared(TObjectName name,
CatalogObjectKind kind,
EDbVendor vendor,
IdentifierService service,
TObjectName enclosingPackage)
The name a routine is declared with: a member of the enclosing package when it is declared inside one
unqualified, else the name as written (a qualifier of a standalone declaration is its schema).
|
static void |
RoutineShadow.declaredFromCall(ModelBindingManager manager,
String site,
TObjectName written,
Object origin,
Integer argumentCount,
CatalogObjectKind wanted,
Procedure legacy)
A routine the legacy registry was asked for by name from a call or an EXEC (
origin is the call or
name node): it returns an existing routine it found by name, or a new one made from origin. |
static boolean |
RoutineDeclaration.identityOverloads(EDbVendor vendor,
CatalogObjectKind kind,
boolean memberOrLocal)
Whether the vendor tells routines of this kind apart by their parameters (their identity is not the name alone).
|
static List<RoutineName> |
RoutineName.interpretations(TObjectName name,
CatalogObjectKind kind,
EDbVendor vendor,
IdentifierService service,
TObjectName enclosingPackage)
The interpretations of a called name: one, or two for an Oracle name
x.f or a call inside a package. |
static void |
RoutineShadow.lookedUp(ModelBindingManager manager,
String site,
TCustomSqlStatement at,
TObjectName written,
Integer[] aliases,
CatalogObjectKind wanted,
Procedure legacy)
A callee lookup at a call site inside
at and the routine the legacy lookup settled on (null when
none). |
RoutineLookupResult |
RoutineRegistry.lookup(List<RoutineName> interpretations,
Integer argumentCount,
CatalogObjectKind wanted,
Collection<Object> visibleScopes)
A lookup for a routine of
wanted kind (ROUTINE when the call site does not say), seeing the local
routines declared in visibleScopes (the routines enclosing the call); triggers are not callable. |
static RoutineDeclaration.Signature |
RoutineDeclaration.signatureOf(EDbVendor vendor,
CatalogObjectKind kind,
boolean memberOrLocal)
The signature a vendor identifies a routine of this kind by.
|
CanonKey |
RoutineName.terminalKey(CatalogObjectKind asKind)
The terminal's key when compared as a routine of
asKind. |
static boolean |
RoutineDeclaration.usesCountAliases(EDbVendor vendor,
CatalogObjectKind kind,
boolean memberOrLocal)
Whether declarations of this kind are keyed with their argument counts, so a call is looked up by its
argument count: where the vendor overloads routines of the kind, and wherever the legacy registry keyed them
so (standalone Oracle routines, MySQL, HANA).
|