public class JdbcEnvironmentImpl extends java.lang.Object implements JdbcEnvironment
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCHEMA_NAME_RESOLVER |
| Constructor and Description |
|---|
JdbcEnvironmentImpl(java.sql.DatabaseMetaData databaseMetaData,
Dialect dialect)
Constructor form used from testing
|
JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry,
Dialect dialect)
Constructor form used when the JDBC
DatabaseMetaData is not available. |
JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry,
Dialect dialect,
java.sql.DatabaseMetaData databaseMetaData)
The main constructor form.
|
| Modifier and Type | Method and Description |
|---|---|
Identifier |
getCurrentCatalog()
Get the current database catalog.
|
Identifier |
getCurrentSchema()
Get the current database catalog.
|
Dialect |
getDialect()
Get the dialect for this environment.
|
ExtractedDatabaseMetaData |
getExtractedDatabaseMetaData()
Access to the bits of information we pulled off the JDBC
DatabaseMetaData (that did not get
"interpreted" into the helpers/delegates available here). |
IdentifierHelper |
getIdentifierHelper()
Obtain the helper for dealing with identifiers in this environment.
|
LobCreatorBuilder |
getLobCreatorBuilder()
Retrieve the delegate for building
LobCreator instances. |
NameQualifierSupport |
getNameQualifierSupport()
Obtain the level of support for qualified names.
|
QualifiedObjectNameFormatter |
getQualifiedObjectNameFormatter()
Obtain support for formatting qualified object names.
|
SqlExceptionHelper |
getSqlExceptionHelper()
Obtain the helper for dealing with JDBC
SQLException faults. |
TypeInfo |
getTypeInfoForJdbcCode(int jdbcTypeCode)
Find type information for the type identified by the given "JDBC type code".
|
public static final java.lang.String SCHEMA_NAME_RESOLVER
public JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect)
DatabaseMetaData is not available.serviceRegistry - The service registrydialect - The resolved dialect.public JdbcEnvironmentImpl(java.sql.DatabaseMetaData databaseMetaData,
Dialect dialect)
throws java.sql.SQLException
dialect - The dialectjava.sql.SQLExceptionpublic JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect, java.sql.DatabaseMetaData databaseMetaData) throws java.sql.SQLException
serviceRegistry - The service registrydialect - The resolved dialectdatabaseMetaData - The available DatabaseMetaDatajava.sql.SQLExceptionpublic Dialect getDialect()
JdbcEnvironmentgetDialect in interface JdbcEnvironmentpublic ExtractedDatabaseMetaData getExtractedDatabaseMetaData()
JdbcEnvironmentDatabaseMetaData (that did not get
"interpreted" into the helpers/delegates available here).getExtractedDatabaseMetaData in interface JdbcEnvironmentpublic Identifier getCurrentCatalog()
JdbcEnvironmentConnection.getCatalog()
or AvailableSettings.DEFAULT_CATALOG.getCurrentCatalog in interface JdbcEnvironmentpublic Identifier getCurrentSchema()
JdbcEnvironmentSchemaNameResolver.resolveSchemaName(java.sql.Connection, org.hibernate.dialect.Dialect) or
AvailableSettings.DEFAULT_CATALOG.getCurrentSchema in interface JdbcEnvironmentpublic QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()
JdbcEnvironmentgetQualifiedObjectNameFormatter in interface JdbcEnvironmentpublic IdentifierHelper getIdentifierHelper()
JdbcEnvironmentgetIdentifierHelper in interface JdbcEnvironmentpublic NameQualifierSupport getNameQualifierSupport()
JdbcEnvironmentgetNameQualifierSupport in interface JdbcEnvironmentpublic SqlExceptionHelper getSqlExceptionHelper()
JdbcEnvironmentSQLException faults.getSqlExceptionHelper in interface JdbcEnvironmentpublic LobCreatorBuilder getLobCreatorBuilder()
JdbcEnvironmentLobCreator instances.getLobCreatorBuilder in interface JdbcEnvironmentpublic TypeInfo getTypeInfoForJdbcCode(int jdbcTypeCode)
JdbcEnvironmentgetTypeInfoForJdbcCode in interface JdbcEnvironmentjdbcTypeCode - The JDBC type code.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.