Class NamespaceSupports

java.lang.Object
org.hibernate.dialect.namespace.spi.NamespaceSupports

@SPI(USE) public final class NamespaceSupports extends Object

Supplies immutable stock catalog and schema lifecycle strategies.

Use standard() for ordinary schema DDL, the Boolean overload when the schema grammar admits existence clauses, none() when neither namespace kind is manageable, and catalogsAsDatabases() for MySQL-style database catalogs.

Since:
8.0
  • Method Details

    • standard

      public static NamespaceSupport standard()
      Return ordinary schema lifecycle support without existence clauses.
    • standard

      public static NamespaceSupport standard(boolean createSchemaIfNotExists, boolean dropSchemaIfExists)
      Return ordinary schema lifecycle support with the requested existence clauses.
    • none

      public static NamespaceSupport none()
      Return the profile which manages neither catalogs nor schemas.
    • catalogsAsDatabases

      public static NamespaceSupport catalogsAsDatabases()
      Return the profile which manages catalogs with create database and drop database while disabling schema lifecycle operations.