| Modifier and Type | Method and Description |
|---|---|
static IdentifierService |
CatalogIdentifierPolicy.identifierServiceFor(IdentifierConfig cfg,
EDbVendor vendor)
Public façade over
CatalogIdentifierPolicy.serviceFor(IdentifierConfig, EDbVendor) for callers
outside this package (validator, readers, providers) that need an
IdentifierService matching a IdentifierConfig. |
| Modifier and Type | Method and Description |
|---|---|
static CatalogObjectKey |
CatalogObjectKey.atDatabaseLink(IdentifierService service,
CatalogObjectKey completeLocalKey,
String link,
IdentifierInputForm form)
The same identity, reached through a database link.
|
static CatalogObjectKey |
CatalogObjectKey.catalog(IdentifierService service,
CatalogHierarchy hierarchy,
String server,
String catalog,
IdentifierInputForm form)
A catalog, optionally under a server.
|
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.
|
static CatalogObjectKey |
CatalogObjectKey.column(IdentifierService service,
CatalogObjectKey parentRelation,
String localName,
IdentifierInputForm form)
A column of an already-identified relation.
|
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 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 CatalogObjectKey |
CatalogObjectKey.rootSchema(IdentifierService service,
CatalogHierarchy hierarchy,
String schema,
IdentifierInputForm form)
A schema under a topology that has no catalog level.
|
static CatalogObjectKey |
CatalogObjectKey.schemaIn(IdentifierService service,
CatalogObjectKey parentCatalog,
String schema,
IdentifierInputForm form)
A schema inside an already-identified catalog.
|
| Modifier and Type | Method and Description |
|---|---|
IdentifierService |
DataFlowAnalyzer.getIdentifierService()
The frozen identifier service of this analysis, or null before
DataFlowAnalyzer.freezeIdentifierProfile() ran. |
| Modifier and Type | Method and Description |
|---|---|
static IdentifierService |
ModelBindingManager.getGlobalIdentifierService()
The analysis's identifier service, or the vendor default when no analysis configured one.
|
static IdentifierService |
ModelBindingManager.getGlobalIdentifierServiceRaw() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ModelBindingManager.setGlobalIdentifierService(IdentifierService service)
Install the analysis's identifier service for this thread.
|
| Modifier and Type | Method and Description |
|---|---|
static IdentifierService |
RoutineAliasKey.service()
The analysis's identifier service, or the vendor default when no analysis has published one.
|
| 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 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 RoutineDeclaration |
RoutineDeclaration.of(Object model,
Object origin,
RoutineName name,
TParameterDeclarationList parameters,
EDbVendor vendor,
IdentifierService service)
RoutineDeclaration.of(Object, RoutineName, TParameterDeclarationList, Object, EDbVendor, IdentifierService) for a
top-level routine; model is not kept (the typed registry holds declarations, not legacy models). |
static RoutineDeclaration |
RoutineDeclaration.of(Object origin,
RoutineName name,
TParameterDeclarationList parameters,
Object scope,
EDbVendor vendor,
IdentifierService service)
A declaration from its AST:
scope the routine it is local to (null for a top-level or package
routine). |
static ArgumentTypeKey |
ArgumentTypeKey.of(TTypeName type,
EDbVendor vendor,
IdentifierService service) |
static RoutineAliasKey |
RoutineAliasKey.ofLegacyText(String text,
IdentifierService service)
RoutineAliasKey.ofLegacyText(String) under the given analysis's identifier rules. |
static RoutineAliasKey |
RoutineAliasKey.ofWrittenLevels(List<String> qualifiers,
String routine,
String signature,
IdentifierService service)
The key of a name whose levels are already separate identifiers as written: a model's database and schema
fields and its routine name.
|
RoutineAliasKey |
RoutineAliasKey.withQualifier(String qualifier,
IdentifierService service) |
RoutineAliasKey |
RoutineAliasKey.withSignature(String otherSignature,
IdentifierService service) |
static RoutineAliasKey |
RoutineAliasKey.written(TObjectName name,
String signature,
IdentifierService service) |
| Modifier and Type | Method and Description |
|---|---|
static LocalSymbolKey |
LocalSymbolKey.of(Object scope,
String name,
LocalSymbolKey.Kind kind,
IdentifierService service) |
| Modifier and Type | Method and Description |
|---|---|
static String |
NormalNameCollisions.contestedKey(IdentifierService service,
ESQLDataObjectType type,
String legacy)
The contested key of the legacy name
legacy of a name of role type, as NormalNameCollisions.scan(gudusoft.gsqlparser.EDbVendor, java.util.Collection<java.lang.String>) returns
them: for a caller that finds two names sharing one legacy name outside the SQL text a scan reads. |
static String |
NormalNameCollisions.normalName(Set<String> contested,
IdentifierService service,
ESQLDataObjectType type,
String origin,
String legacy)
NormalNameCollisions.normalName(Set, EDbVendor, ESQLDataObjectType, String, String) under the analysis's
own identifier rules; pass the service NormalNameCollisions.scan(IdentifierService, Collection) used. |
static Set<String> |
NormalNameCollisions.scan(IdentifierService service,
Collection<String> sqlTexts)
NormalNameCollisions.scan(EDbVendor, Collection) under the analysis's own identifier rules, which a
configured profile may make stricter than the vendor's (SQL Server under a case-sensitive
collation tells Amount from AMOUNT). |
static Set<String> |
NormalNameCollisions.scanTokens(IdentifierService service,
Collection<TSourceTokenList> tokenLists)
NormalNameCollisions.scan(gudusoft.gsqlparser.EDbVendor, java.util.Collection<java.lang.String>) over tokens already read, such as a parser's token list after it parsed the
analysis's only unit, which spares lexing the text a second time. |
| Modifier and Type | Method and Description |
|---|---|
IdentifierService |
TSQLEnv.getIdentifierService() |
| Modifier and Type | Method and Description |
|---|---|
IdentifierService |
TSQLResolverConfig.identifierService()
The single comparison engine this resolution uses — configured when
TSQLResolverConfig.setIdentifierProfile(gudusoft.gsqlparser.sqlenv.IdentifierProfile) was called, else the vendor's default service. |
| Modifier and Type | Method and Description |
|---|---|
IdentifierService |
VendorNameMatcher.getIdentifierService()
The identifier service every comparison here delegates to.
|
| Constructor and Description |
|---|
VendorNameMatcher(IdentifierService service,
ESQLDataObjectType defaultObjectType)
Create a matcher over ONE analysis's identifier service, so resolution observes that
analysis's per-category configuration rather than the vendor default.
|
| Modifier and Type | Method and Description |
|---|---|
SelectScope.UsingMerge |
SelectScope.findCoveringMerge(IdentifierService names,
String columnName,
List<TTable> candidateTables)
SelectScope.findCoveringMerge(gudusoft.gsqlparser.EDbVendor, String, java.util.List) with the
column names compared under one analysis's identifier rules (a configured profile). |
boolean |
SelectScope.UsingMerge.merges(IdentifierService names,
String columnName)
SelectScope.UsingMerge.merges(gudusoft.gsqlparser.EDbVendor, String) under one analysis's identifier rules. |
| Modifier and Type | Method and Description |
|---|---|
static IdentifierService |
IdentifierService.defaultServiceFor(EDbVendor dbVendor)
The vendor's DEFAULT-configuration service — the same instance the vendor-only static
methods above use.
|
static IdentifierService |
IdentifierService.forProfile(IdentifierProfile profile)
Build the service for one
IdentifierProfile, attaching the
CollatorProvider the profile's vendor needs. |
IdentifierService |
TSQLEnv.getIdentifierService()
Get IdentifierService (Phase 0)
|
IdentifierService |
NameService.getIdentifierService()
The identifier service every comparison here delegates to — the single engine, configured
for this environment.
|
| Modifier and Type | Method and Description |
|---|---|
static NameService |
NameService.forIdentifierService(IdentifierService service)
A NameService over ONE analysis's identifier service, so the comparisons and sets built here
observe that analysis's per-category configuration instead of the vendor default.
|
| Constructor and Description |
|---|
CatalogStore(EDbVendor vendor,
IdentifierService identifierService)
Creates a new CatalogStore for the specified database vendor with IdentifierService.
|
| Modifier and Type | Method and Description |
|---|---|
IdentifierService |
CatalogStoreProvider.getIdentifierService()
Get the IdentifierService
|
| Constructor and Description |
|---|
CatalogStoreProvider(CatalogStore catalogStore,
IdentifierService identifierService)
Creates a CatalogStoreProvider wrapping existing CatalogStore
|
CatalogStoreProvider(IdentifierService identifierService)
Creates a CatalogStoreProvider over an existing analysis service.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SQLUtil.compareIdentifier(IdentifierService service,
ESQLDataObjectType sqlDataObjectType,
String identifier1,
String identifier2)
SQLUtil.compareIdentifier(EDbVendor, ESQLDataObjectType, String, String) under the rules of
one analysis rather than its vendor's defaults: the same segmentation, each segment compared by
service. |