public class JdbcEnvironmentImpl extends Object implements JdbcEnvironment
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_NAME_RESOLVER |
Constructor and Description |
---|
JdbcEnvironmentImpl(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,
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 String SCHEMA_NAME_RESOLVER
public JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect)
DatabaseMetaData
is not available.serviceRegistry
- The service registrydialect
- The resolved dialect.public JdbcEnvironmentImpl(DatabaseMetaData databaseMetaData, Dialect dialect) throws SQLException
dialect
- The dialectSQLException
public JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect, DatabaseMetaData databaseMetaData) throws SQLException
serviceRegistry
- The service registrydialect
- The resolved dialectdatabaseMetaData
- The available DatabaseMetaDataSQLException
public Dialect getDialect()
JdbcEnvironment
getDialect
in interface JdbcEnvironment
public ExtractedDatabaseMetaData getExtractedDatabaseMetaData()
JdbcEnvironment
DatabaseMetaData
(that did not get
"interpreted" into the helpers/delegates available here).getExtractedDatabaseMetaData
in interface JdbcEnvironment
public Identifier getCurrentCatalog()
JdbcEnvironment
Connection.getCatalog()
or AvailableSettings.DEFAULT_CATALOG
.getCurrentCatalog
in interface JdbcEnvironment
public Identifier getCurrentSchema()
JdbcEnvironment
SchemaNameResolver.resolveSchemaName(java.sql.Connection, org.hibernate.dialect.Dialect)
or
AvailableSettings.DEFAULT_CATALOG
.getCurrentSchema
in interface JdbcEnvironment
public QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()
JdbcEnvironment
getQualifiedObjectNameFormatter
in interface JdbcEnvironment
public IdentifierHelper getIdentifierHelper()
JdbcEnvironment
getIdentifierHelper
in interface JdbcEnvironment
public NameQualifierSupport getNameQualifierSupport()
JdbcEnvironment
getNameQualifierSupport
in interface JdbcEnvironment
public SqlExceptionHelper getSqlExceptionHelper()
JdbcEnvironment
SQLException
faults.getSqlExceptionHelper
in interface JdbcEnvironment
public LobCreatorBuilder getLobCreatorBuilder()
JdbcEnvironment
LobCreator
instances.getLobCreatorBuilder
in interface JdbcEnvironment
public TypeInfo getTypeInfoForJdbcCode(int jdbcTypeCode)
JdbcEnvironment
getTypeInfoForJdbcCode
in interface JdbcEnvironment
jdbcTypeCode
- The JDBC type code.Copyright © 2017 JBoss by Red Hat. All rights reserved.