Class Database
- java.lang.Object
-
- org.hibernate.boot.model.relational.Database
-
public class Database extends Object
-
-
Constructor Summary
Constructors Constructor Description Database(MetadataBuildingOptions buildingOptions)
Database(MetadataBuildingOptions buildingOptions, JdbcEnvironment jdbcEnvironment)
-
Method Summary
-
-
-
Constructor Detail
-
Database
public Database(MetadataBuildingOptions buildingOptions)
-
Database
public Database(MetadataBuildingOptions buildingOptions, JdbcEnvironment jdbcEnvironment)
-
-
Method Detail
-
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()
-
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:
SqlStringGenerationContext
-
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:
SqlStringGenerationContext
-
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()
-
-