Interface JdbcEnvironment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 JDBCDatabaseMetaData
(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 buildingLobCreator
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 JDBCSQLException
faults.TypeInfo
getTypeInfoForJdbcCode(int jdbcTypeCode)
Find type information for the type identified by the given "JDBC type code".
-
-
-
Method Detail
-
getDialect
Dialect getDialect()
Get the dialect for this environment.- Returns:
- The dialect.
-
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()
orAvailableSettings.DEFAULT_CATALOG
.- Returns:
- The current catalog.
-
getCurrentSchema
Identifier getCurrentSchema()
Get the current database catalog. Typically will come from eitherSchemaNameResolver.resolveSchemaName(java.sql.Connection, org.hibernate.dialect.Dialect)
orAvailableSettings.DEFAULT_CATALOG
.- Returns:
- The current schema
-
getQualifiedObjectNameFormatter
QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()
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:
-
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.
-
getTypeInfoForJdbcCode
TypeInfo getTypeInfoForJdbcCode(int jdbcTypeCode)
Find type information for the type identified by the given "JDBC type code".- Parameters:
jdbcTypeCode
- The JDBC type code.- Returns:
- The corresponding type info.
-
-