类 JdbcEnvironmentImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl
-
- 所有已实现的接口:
Serializable,JdbcEnvironment,Service
public class JdbcEnvironmentImpl extends Object implements JdbcEnvironment
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringSCHEMA_NAME_RESOLVER
-
构造器概要
构造器 构造器 说明 JdbcEnvironmentImpl(DatabaseMetaData databaseMetaData, Dialect dialect)Constructor form used from testingJdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect)Constructor form used when the JDBCDatabaseMetaDatais not available.JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect, DatabaseMetaData databaseMetaData)The main constructor form.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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".
-
-
-
构造器详细资料
-
JdbcEnvironmentImpl
public JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect)
Constructor form used when the JDBCDatabaseMetaDatais not available.- 参数:
serviceRegistry- The service registrydialect- The resolved dialect.
-
JdbcEnvironmentImpl
public JdbcEnvironmentImpl(DatabaseMetaData databaseMetaData, Dialect dialect) throws SQLException
Constructor form used from testing- 参数:
dialect- The dialect- 抛出:
SQLException
-
JdbcEnvironmentImpl
public JdbcEnvironmentImpl(ServiceRegistryImplementor serviceRegistry, Dialect dialect, DatabaseMetaData databaseMetaData) throws SQLException
The main constructor form. Builds a JdbcEnvironment using the available DatabaseMetaData- 参数:
serviceRegistry- The service registrydialect- The resolved dialectdatabaseMetaData- The available DatabaseMetaData- 抛出:
SQLException
-
-
方法详细资料
-
getDialect
public Dialect getDialect()
从接口复制的说明:JdbcEnvironmentGet the dialect for this environment.- 指定者:
getDialect在接口中JdbcEnvironment- 返回:
- The dialect.
-
getExtractedDatabaseMetaData
public ExtractedDatabaseMetaData getExtractedDatabaseMetaData()
从接口复制的说明:JdbcEnvironmentAccess to the bits of information we pulled off the JDBCDatabaseMetaData(that did not get "interpreted" into the helpers/delegates available here).- 指定者:
getExtractedDatabaseMetaData在接口中JdbcEnvironment- 返回:
- The values extracted from JDBC DatabaseMetaData
-
getCurrentCatalog
public Identifier getCurrentCatalog()
从接口复制的说明:JdbcEnvironmentGet the current database catalog. Typically will come from eitherConnection.getCatalog()orAvailableSettings.DEFAULT_CATALOG.- 指定者:
getCurrentCatalog在接口中JdbcEnvironment- 返回:
- The current catalog.
-
getCurrentSchema
public Identifier getCurrentSchema()
从接口复制的说明:JdbcEnvironmentGet the current database catalog. Typically will come from eitherSchemaNameResolver.resolveSchemaName(java.sql.Connection, org.hibernate.dialect.Dialect)orAvailableSettings.DEFAULT_CATALOG.- 指定者:
getCurrentSchema在接口中JdbcEnvironment- 返回:
- The current schema
-
getQualifiedObjectNameFormatter
public QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()
从接口复制的说明:JdbcEnvironmentObtain support for formatting qualified object names.- 指定者:
getQualifiedObjectNameFormatter在接口中JdbcEnvironment- 返回:
- Qualified name support.
-
getIdentifierHelper
public IdentifierHelper getIdentifierHelper()
从接口复制的说明:JdbcEnvironmentObtain the helper for dealing with identifiers in this environment. Note that the Identifiers returned from this IdentifierHelper already account for auto-quoting :) yaay!- 指定者:
getIdentifierHelper在接口中JdbcEnvironment- 返回:
- The identifier helper.
-
getNameQualifierSupport
public NameQualifierSupport getNameQualifierSupport()
从接口复制的说明:JdbcEnvironmentObtain the level of support for qualified names.- 指定者:
getNameQualifierSupport在接口中JdbcEnvironment- 返回:
- The NameQualifierSupport.
-
getSqlExceptionHelper
public SqlExceptionHelper getSqlExceptionHelper()
从接口复制的说明:JdbcEnvironmentObtain the helper for dealing with JDBCSQLExceptionfaults.- 指定者:
getSqlExceptionHelper在接口中JdbcEnvironment- 返回:
- This environment's helper.
-
getLobCreatorBuilder
public LobCreatorBuilder getLobCreatorBuilder()
从接口复制的说明:JdbcEnvironmentRetrieve the delegate for buildingLobCreatorinstances.- 指定者:
getLobCreatorBuilder在接口中JdbcEnvironment- 返回:
- The LobCreator builder.
-
getTypeInfoForJdbcCode
public TypeInfo getTypeInfoForJdbcCode(int jdbcTypeCode)
从接口复制的说明:JdbcEnvironmentFind type information for the type identified by the given "JDBC type code".- 指定者:
getTypeInfoForJdbcCode在接口中JdbcEnvironment- 参数:
jdbcTypeCode- The JDBC type code.- 返回:
- The corresponding type info.
-
-