Skip to content

RepositoryUtils

getSchemaId

UUID getSchemaId(
  Session session,
  String catalogName,
  String schemaName)

getSchemaId requests the system-wide SchemaRepository for the SchemaInfoDAO for the given catalogName and schemaName.

BaseException

getSchemaId reports a BaseException when there is no schema found (by the given catalogName and schemaName).

Schema not found: [schemaName]"

In the end, getSchemaId returns the ID of the schema.


getSchemaId is used when: