Interface NamespaceSupport
Defines the catalog and schema lifecycle operations used by schema tooling.
Implement this contract with immutable or thread-safe state. Treat every
supplied namespace name as already rendered identifier text, return commands
in execution order, and do not retain invocation-specific state. Use a stock
profile from NamespaceSupports whenever its complete behavior matches the
database.
- Since:
- 8.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReport whether schema tooling may create and drop catalogs.booleanReport whether schema tooling may create and drop schemas.String[]getCreateCatalogCommands(String catalogName) Return the ordered SQL commands which createcatalogName.String[]getCreateSchemaCommands(String schemaName) Return the ordered SQL commands which createschemaName.String[]getDropCatalogCommands(String catalogName) Return the ordered SQL commands which dropcatalogName.String[]getDropSchemaCommands(String schemaName) Return the ordered SQL commands which dropschemaName.
-
Method Details
-
canCreateCatalog
boolean canCreateCatalog()Report whether schema tooling may create and drop catalogs. -
getCreateCatalogCommands
-
getDropCatalogCommands
-
canCreateSchema
boolean canCreateSchema()Report whether schema tooling may create and drop schemas. -
getCreateSchemaCommands
-
getDropSchemaCommands
-