Top Method Summary
Options Name Purpose
CreateAlias (character, character) Registers (or updates) a schema alias for a database name Notes : Mirrors CREATE ALIAS / the parser's &-alias handling. @param pcAlias The alias name @param pcDatabaseName The logical database name the alias resolves to */
DeleteAlias (character) Removes a schema alias Notes : @param pcAlias The alias name */
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaDatabase GetDatabases () Returns the databases of the schema, in load order Notes : Materialized lazily; an indeterminate array when the schema is empty. A method rather than a property because an EXTENT property cannot run a whole-array getter. @return The array of SchemaDatabase instances (indeterminate when none) */
LOGICAL HasField (character, character) Returns whether a field exists within a table Notes : No wrapper is materialized. The table name may be db-qualified. @param pcTableName The table name (optionally database-qualified) @param pcFieldName The field name @return Logical value */
LOGICAL HasTable (character) Returns whether a table name exists (unqualified or db-qualified) Notes : No wrapper is materialized - a single indexed lookup. @param pcName The table name (optionally database-qualified) @return Logical value */
LOGICAL IsAlias (character) Returns whether a name is a registered schema alias Notes : @param pcAlias The name to test @return Logical value */
INTEGER LoadConnectedDatabases () Loads (or reloads) the schema from the connected databases Notes : Clears the store first, so it doubles as the refresh implementation. @return The number of databases loaded */
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaDatabase LookupDatabase (character) Returns a database by logical (or alias) name, or the unknown value Notes : @param pcName The database or alias name @return The SchemaDatabase, or the unknown value when there is no such database */
Consultingwerk.Studio.ProparseApi.IField LookupField (character, character) Returns a field of a table by name, or the unknown value Notes : The table name may be database-qualified. @param pcTableName The table name (optionally database-qualified) @param pcFieldName The field name @return The IField, or the unknown value when there is no such field */
Consultingwerk.Studio.ProparseApi.ITable LookupTable (character) Returns a table by name, or the unknown value Notes : Accepts an unqualified table name or a database-qualified "database.table" name (the database part is alias-resolved). The first match by connection / load order wins for an unqualified name. A third dotted part (database.table.field) is ignored, as the reference schema lookup does (SCL-5780). @param pcName The table name (optionally database-qualified) @return The ITable, or the unknown value when there is no such table */
Consultingwerk.Studio.ProparseApi.ITable LookupTable (character, character) Returns a table qualified by database (or alias), or the unknown value Notes : @param pcDatabaseName The database or alias name @param pcTableName The table name @return The ITable, or the unknown value when there is no such table */
INTEGER Refresh () Reloads the schema from the connected databases Notes : Explicit refresh for the cached instance after a connection change. @return The number of databases loaded */
ResetInstance () Drops the cached session-singleton Schema Notes : The next Instance access rebuilds and reloads it. Chiefly for tests and for forcing a full rebuild. */
Consultingwerk.Studio.ProparseApi.ITable TableFromId (integer) Materializes a table wrapper from a store table id (0 -> unknown) Notes : @param piTableId The store table id @return The ITable, or the unknown value when the id is 0 */

Top Constructor Summary
Options Name Purpose
Schema () Constructor for the Schema class Notes : Creates an empty store; call LoadConnectedDatabases to populate it. */

Top Property Summary
Options Name Purpose
INTEGER DatabaseCount
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.Schema Instance
Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaStore Store
INTEGER TableCount


Method Detail
Top

CreateAlias (character, character)

Purpose: Registers (or updates) a schema alias for a database name
Notes : Mirrors CREATE ALIAS / the parser's &-alias handling.

Parameters:
pcAlias CHARACTER
The alias name
pcDatabaseName CHARACTER
The logical database name the alias resolves to
Top

DeleteAlias (character)

Purpose: Removes a schema alias
Notes :

Parameters:
pcAlias CHARACTER
The alias name
Top

Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaDatabase GetDatabases ()

Purpose: Returns the databases of the schema, in load order
Notes : Materialized lazily; an indeterminate array when the schema is empty.
A method rather than a property because an EXTENT property cannot
run a whole-array getter.

Returns Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaDatabase
The array of SchemaDatabase instances (indeterminate when none)
Top

LOGICAL HasField (character, character)

Purpose: Returns whether a field exists within a table
Notes : No wrapper is materialized. The table name may be db-qualified.

Parameters:
pcTableName CHARACTER
The table name (optionally database-qualified)
pcFieldName CHARACTER
The field name
Returns LOGICAL
Logical value
Top

LOGICAL HasTable (character)

Purpose: Returns whether a table name exists (unqualified or db-qualified)
Notes : No wrapper is materialized - a single indexed lookup.

Parameters:
pcName CHARACTER
The table name (optionally database-qualified)
Returns LOGICAL
Logical value
Top

LOGICAL IsAlias (character)

Purpose: Returns whether a name is a registered schema alias
Notes :

Parameters:
pcAlias CHARACTER
The name to test
Returns LOGICAL
Logical value
Top

INTEGER LoadConnectedDatabases ()

Purpose: Loads (or reloads) the schema from the connected databases
Notes : Clears the store first, so it doubles as the refresh implementation.

Returns INTEGER
The number of databases loaded
Top

Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaDatabase LookupDatabase (character)

Purpose: Returns a database by logical (or alias) name, or the unknown value
Notes :

Parameters:
pcName CHARACTER
The database or alias name
Returns Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaDatabase
The SchemaDatabase, or the unknown value when there is no such database
Top

Consultingwerk.Studio.ProparseApi.IField LookupField (character, character)

Purpose: Returns a field of a table by name, or the unknown value
Notes : The table name may be database-qualified.

Parameters:
pcTableName CHARACTER
The table name (optionally database-qualified)
pcFieldName CHARACTER
The field name
Returns Consultingwerk.Studio.ProparseApi.IField
The IField, or the unknown value when there is no such field
Top

Consultingwerk.Studio.ProparseApi.ITable LookupTable (character)

Purpose: Returns a table by name, or the unknown value
Notes : Accepts an unqualified table name or a database-qualified
"database.table" name (the database part is alias-resolved). The
first match by connection / load order wins for an unqualified name.
A third dotted part (database.table.field) is ignored, as the
reference schema lookup does (SCL-5780).

Parameters:
pcName CHARACTER
The table name (optionally database-qualified)
Returns Consultingwerk.Studio.ProparseApi.ITable
The ITable, or the unknown value when there is no such table
Top

Consultingwerk.Studio.ProparseApi.ITable LookupTable (character, character)

Purpose: Returns a table qualified by database (or alias), or the unknown value
Notes :

Parameters:
pcDatabaseName CHARACTER
The database or alias name
pcTableName CHARACTER
The table name
Returns Consultingwerk.Studio.ProparseApi.ITable
The ITable, or the unknown value when there is no such table
Top

INTEGER Refresh ()

Purpose: Reloads the schema from the connected databases
Notes : Explicit refresh for the cached instance after a connection change.

Returns INTEGER
The number of databases loaded
Top

ResetInstance ()

Purpose: Drops the cached session-singleton Schema
Notes : The next Instance access rebuilds and reloads it. Chiefly for tests
and for forcing a full rebuild.

Top

Consultingwerk.Studio.ProparseApi.ITable TableFromId (integer)

Purpose: Materializes a table wrapper from a store table id (0 -> unknown)
Notes :

Parameters:
piTableId INTEGER
The store table id
Returns Consultingwerk.Studio.ProparseApi.ITable
The ITable, or the unknown value when the id is 0


Constructor Detail
Top

Schema ()

Purpose: Constructor for the Schema class
Notes : Creates an empty store; call LoadConnectedDatabases to populate it.



Property Detail
Top

INTEGER DatabaseCount


Returns INTEGER
Top

Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.Schema Instance


Returns Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.Schema
Top

Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaStore Store


Returns Consultingwerk.Studio.ProparseApi.Implementation.ProparseAbl.Schema.SchemaStore
Top

INTEGER TableCount


Returns INTEGER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       19.09.2026 10:18:25