Interface JdbcEnvironment
- All Superinterfaces:
Serializable, Service
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.Deprecated.Obtain the helper for dealing with identifiers in this environment.Obtain the stable effective JDBC metadata view for this environment.Retrieve the delegate for buildingLobCreatorinstances.Obtain the level of support for qualified names.Deprecated.Use a providedSqlStringGenerationContextinstead.Obtain the helper for dealing with JDBCSQLExceptionfaults.Immutable concurrency baseline resolved before factory SQL generation.
-
Method Details
-
getDialect
-
getSqlAstTranslatorFactory
SqlAstTranslatorFactory getSqlAstTranslatorFactory() -
getJdbcMetadata
JdbcMetadata getJdbcMetadata()Obtain the stable effective JDBC metadata view for this environment.
Use this view for runtime support decisions. Access its raw snapshot only when diagnostics, reporting, or an integration contract specifically requires driver observations.
- Since:
- 8.0
-
getTransactionConcurrency
TransactionConcurrency getTransactionConcurrency()Immutable concurrency baseline resolved before factory SQL generation. Factory connections must use a consistent isolation configuration. No connection settings are changed by resolution. -
getExtractedDatabaseMetaData
Deprecated.UsegetJdbcMetadata()for effective runtime decisions. For intentional raw access, usegetJdbcMetadata().getExtractedDatabaseMetaData().Obtain the raw JDBC driver and bootstrap-connection observations.- 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 eitherConnection.getSchema()or "hibernate.default_schema".- Returns:
- The current schema
- See Also:
-
getQualifiedObjectNameFormatter
Deprecated.Use a providedSqlStringGenerationContextinstead.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 JDBCSQLExceptionfaults.- Returns:
- This environment's helper.
-
getLobCreatorBuilder
LobCreatorBuilder getLobCreatorBuilder()Retrieve the delegate for buildingLobCreatorinstances.- Returns:
- The LobCreator builder.
-
getJdbcMetadata()for effective runtime decisions.