Class NamespaceSupports
java.lang.Object
org.hibernate.dialect.namespace.spi.NamespaceSupports
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 Summary
Modifier and TypeMethodDescriptionstatic NamespaceSupportReturn the profile which manages catalogs withcreate databaseanddrop databasewhile disabling schema lifecycle operations.static NamespaceSupportnone()Return the profile which manages neither catalogs nor schemas.static NamespaceSupportstandard()Return ordinary schema lifecycle support without existence clauses.static NamespaceSupportstandard(boolean createSchemaIfNotExists, boolean dropSchemaIfExists) Return ordinary schema lifecycle support with the requested existence clauses.
-
Method Details
-
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
Return the profile which manages neither catalogs nor schemas. -
catalogsAsDatabases
Return the profile which manages catalogs withcreate databaseanddrop databasewhile disabling schema lifecycle operations.
-