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:
FunctionRepository
is requested to createFunction, getSchemaId, getFunctionDAO, deleteFunctionSchemaRepository
is requested to createSchema, getSchemaDAO, updateSchemaTableRepository
is requested to getSchemaIdVolumeRepository
is requested to createVolume, getVolumeDAO, listVolumes, deleteVolumeRepositoryUtils
is 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:
SchemaRepository
is requested to delete a schema