Interface JdbcEnvironment
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
JdbcEnvironmentImpl
Initial look at this concept we keep talking about with merging information from
DatabaseMetaData
and Dialect
-
Method Summary
Modifier and TypeMethodDescriptionGet the current database catalog.Get the current database catalog.Get the dialect for this environment.Access to the bits of information we pulled off the JDBCDatabaseMetaData
(that did not get "interpreted" into the helpers/delegates available here).Obtain the helper for dealing with identifiers in this environment.Retrieve the delegate for buildingLobCreator
instances.Obtain the level of support for qualified names.Deprecated.Obtain the helper for dealing with JDBCSQLException
faults.
-
Method Details
-
getDialect
Dialect getDialect()Get the dialect for this environment.- Returns:
- The dialect.
-
getSqlAstTranslatorFactory
SqlAstTranslatorFactory getSqlAstTranslatorFactory() -
getExtractedDatabaseMetaData
ExtractedDatabaseMetaData getExtractedDatabaseMetaData()Access to the bits of information we pulled off the JDBCDatabaseMetaData
(that did not get "interpreted" into the helpers/delegates available here).- Returns:
- The values extracted from JDBC DatabaseMetaData
-
getCurrentCatalog
Identifier getCurrentCatalog()Get the current database catalog. Typically will come from eitherConnection.getCatalog()
or "hibernate.default_catalog".- Returns:
- The current catalog.
-
getCurrentSchema
Identifier getCurrentSchema()Get the current database catalog. Typically will come from eitherSchemaNameResolver.resolveSchemaName(java.sql.Connection, Dialect)
or "hibernate.default_catalog".- Returns:
- The current schema
-
getQualifiedObjectNameFormatter
Deprecated.Use a providedSqlStringGenerationContext
instead.Obtain support for formatting qualified object names.- Returns:
- Qualified name support.
-
getIdentifierHelper
IdentifierHelper getIdentifierHelper()Obtain the helper for dealing with identifiers in this environment.Note that the Identifiers returned from this IdentifierHelper already account for auto-quoting :) yaay!
- Returns:
- The identifier helper.
-
getNameQualifierSupport
NameQualifierSupport getNameQualifierSupport()Obtain the level of support for qualified names.- Returns:
- The NameQualifierSupport.
-
getSqlExceptionHelper
SqlExceptionHelper getSqlExceptionHelper()Obtain the helper for dealing with JDBCSQLException
faults.- Returns:
- This environment's helper.
-
getLobCreatorBuilder
LobCreatorBuilder getLobCreatorBuilder()Retrieve the delegate for buildingLobCreator
instances.- Returns:
- The LobCreator builder.
-
SqlStringGenerationContext
instead.