Class Database

java.lang.Object
org.hibernate.boot.model.relational.Database

public class Database extends Object
  • Constructor Details

  • Method Details

    • getDialect

      public Dialect getDialect()
    • getJdbcEnvironment

      public JdbcEnvironment getJdbcEnvironment()
    • toIdentifier

      public Identifier toIdentifier(String text)
      Wrap the raw name of a database object in its Identifier form accounting for quoting from any of:
      • explicit quoting in the name itself
      • global request to quote all identifiers
      Parameters:
      text - The raw object name
      Returns:
      The wrapped Identifier form
      Implementation Note:
      Quoting from database keywords happens only when building physical identifiers.
    • getPhysicalNamingStrategy

      public PhysicalNamingStrategy getPhysicalNamingStrategy()
    • getNamespaces

      public Iterable<Namespace> getNamespaces()
    • getDefaultNamespace

      public Namespace getDefaultNamespace()
      Returns:
      The default namespace, with a null catalog and schema which will have to be interpreted with defaults at runtime.
      See Also:
    • getPhysicalImplicitNamespaceName

      public Namespace.Name getPhysicalImplicitNamespaceName()
      Returns:
      The implicit name of the default namespace, with a null catalog and schema which will have to be interpreted with defaults at runtime.
      See Also:
    • locateNamespace

      public Namespace locateNamespace(Identifier catalogName, Identifier schemaName)
    • adjustDefaultNamespace

      public Namespace adjustDefaultNamespace(Identifier catalogName, Identifier schemaName)
    • adjustDefaultNamespace

      public Namespace adjustDefaultNamespace(String implicitCatalogName, String implicitSchemaName)
    • addAuxiliaryDatabaseObject

      public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
    • getAuxiliaryDatabaseObjects

      public Collection<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjects()
    • getInitCommands

      public Collection<InitCommand> getInitCommands()
    • addInitCommand

      public void addInitCommand(InitCommand initCommand)
    • getServiceRegistry

      public ServiceRegistry getServiceRegistry()
    • getTypeConfiguration

      public TypeConfiguration getTypeConfiguration()