public interface JdbcEnvironment extends Service
Initial look at this concept we keep talking about with merging information from DatabaseMetaData
and Dialect
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".
|
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).
Identifier getCurrentCatalog()
Get the current database catalog. Typically will come from either Connection.getCatalog()
or AvailableSettings.DEFAULT_CATALOG
.
Identifier getCurrentSchema()
Get the current database catalog. Typically will come from either
SchemaNameResolver.resolveSchemaName(java.sql.Connection, org.hibernate.dialect.Dialect)
or
AvailableSettings.DEFAULT_CATALOG
.
QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()
Obtain support for formatting qualified object names.
IdentifierHelper getIdentifierHelper()
Obtain the helper for dealing with identifiers in this environment. <p/> Note that the Identifiers returned from this IdentifierHelper already account for auto-quoting :) yaay!
NameQualifierSupport getNameQualifierSupport()
Obtain the level of support for qualified names.
SqlExceptionHelper getSqlExceptionHelper()
Obtain the helper for dealing with JDBC SQLException
faults.
LobCreatorBuilder getLobCreatorBuilder()
Retrieve the delegate for building LobCreator
instances.
TypeInfo getTypeInfoForJdbcCode(int jdbcTypeCode)
Find type information for the type identified by the given "JDBC type code".
jdbcTypeCode
- The JDBC type code.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.