SchemaRepository¶
Find SchemaDAO by Catalog and Schema Names¶
getSchemaDAO requests the system-wide CatalogRepository for the CatalogInfoDAO.
BaseException
getSchemaId reports a BaseException when the catalogName catalog could not be found.
In the end, getSchemaDAO finds the SchemaInfoDAO for the catalog and the schemaName schema.
getSchemaDAO is used when:
FunctionRepositoryis requested to createFunction, getSchemaId, getFunctionDAO, deleteFunctionSchemaRepositoryis requested to createSchema, getSchemaDAO, updateSchemaTableRepositoryis requested to getSchemaIdVolumeRepositoryis requested to createVolume, getVolumeDAO, listVolumes, deleteVolumeRepositoryUtilsis requested to getSchemaId
Find SchemaDAO by Catalog ID and Schema Name¶
getSchemaDAO creates the following query (using the given Session) for the given schemaName and catalogId:
getSchemaDAO executes the query and returns a single result of the query, or null if the query returns no results.
getSchemaDAO is used when:
SchemaRepositoryis requested to delete a schema