接口 JdbcEnvironment
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
JdbcEnvironmentImpl
public interface JdbcEnvironment extends Service
Initial look at this concept we keep talking about with merging information fromDatabaseMetaDataandDialect- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 IdentifiergetCurrentCatalog()Get the current database catalog.IdentifiergetCurrentSchema()Get the current database catalog.DialectgetDialect()Get the dialect for this environment.ExtractedDatabaseMetaDatagetExtractedDatabaseMetaData()Access to the bits of information we pulled off the JDBCDatabaseMetaData(that did not get "interpreted" into the helpers/delegates available here).IdentifierHelpergetIdentifierHelper()Obtain the helper for dealing with identifiers in this environment.LobCreatorBuildergetLobCreatorBuilder()Retrieve the delegate for buildingLobCreatorinstances.NameQualifierSupportgetNameQualifierSupport()Obtain the level of support for qualified names.QualifiedObjectNameFormattergetQualifiedObjectNameFormatter()Obtain support for formatting qualified object names.SqlExceptionHelpergetSqlExceptionHelper()Obtain the helper for dealing with JDBCSQLExceptionfaults.TypeInfogetTypeInfoForJdbcCode(int jdbcTypeCode)Find type information for the type identified by the given "JDBC type code".
-
-
-
方法详细资料
-
getDialect
Dialect getDialect()
Get the dialect for this environment.- 返回:
- 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).- 返回:
- The values extracted from JDBC DatabaseMetaData
-
getCurrentCatalog
Identifier getCurrentCatalog()
Get the current database catalog. Typically will come from eitherConnection.getCatalog()orAvailableSettings.DEFAULT_CATALOG.- 返回:
- 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.- 返回:
- The current schema
-
getQualifiedObjectNameFormatter
QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()
Obtain support for formatting qualified object names.- 返回:
- 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!- 返回:
- The identifier helper.
-
getNameQualifierSupport
NameQualifierSupport getNameQualifierSupport()
Obtain the level of support for qualified names.- 返回:
- The NameQualifierSupport.
-
getSqlExceptionHelper
SqlExceptionHelper getSqlExceptionHelper()
Obtain the helper for dealing with JDBCSQLExceptionfaults.- 返回:
- This environment's helper.
-
getLobCreatorBuilder
LobCreatorBuilder getLobCreatorBuilder()
Retrieve the delegate for buildingLobCreatorinstances.- 返回:
- The LobCreator builder.
-
getTypeInfoForJdbcCode
TypeInfo getTypeInfoForJdbcCode(int jdbcTypeCode)
Find type information for the type identified by the given "JDBC type code".- 参数:
jdbcTypeCode- The JDBC type code.- 返回:
- The corresponding type info.
-
-