Interface NamespaceSupport


@SPI({USE,IMPLEMENT,SUPPLY}) public 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 Details

    • canCreateCatalog

      boolean canCreateCatalog()
      Report whether schema tooling may create and drop catalogs.
    • getCreateCatalogCommands

      String[] getCreateCatalogCommands(String catalogName)
      Return the ordered SQL commands which create catalogName.
    • getDropCatalogCommands

      String[] getDropCatalogCommands(String catalogName)
      Return the ordered SQL commands which drop catalogName.
    • canCreateSchema

      boolean canCreateSchema()
      Report whether schema tooling may create and drop schemas.
    • getCreateSchemaCommands

      String[] getCreateSchemaCommands(String schemaName)
      Return the ordered SQL commands which create schemaName.
    • getDropSchemaCommands

      String[] getDropSchemaCommands(String schemaName)
      Return the ordered SQL commands which drop schemaName.