类 JdbcServicesImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.internal.JdbcServicesImpl
-
- 所有已实现的接口:
Serializable,JdbcServices,Service,Configurable,ServiceRegistryAwareService
public class JdbcServicesImpl extends Object implements JdbcServices, ServiceRegistryAwareService, Configurable
Standard implementation of theJdbcServicescontract- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 JdbcServicesImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidconfigure(Map configValues)Configure the service.JdbcConnectionAccessgetBootstrapJdbcConnectionAccess()Obtain a JdbcConnectionAccess usable from bootstrap actions (hbm2ddl.auto, Dialect resolution, etc).DialectgetDialect()Obtain the dialect of the database.ExtractedDatabaseMetaDatagetExtractedMetaDataSupport()Obtain information about supported behavior reported by the JDBC driver.JdbcEnvironmentgetJdbcEnvironment()Obtain the JdbcEnvironment backing this JdbcServices instance.LobCreatorgetLobCreator(LobCreationContext lobCreationContext)Create an instance of aLobCreatorappropriate for the current environment, mainly meant to account for variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5).ResultSetWrappergetResultSetWrapper()Obtain service for wrapping aResultSetin a "column name cache" wrapper.SqlExceptionHelpergetSqlExceptionHelper()Obtain service for dealing with exceptions.SqlStatementLoggergetSqlStatementLogger()Obtain service for logging SQL statements.voidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.
-
-
-
方法详细资料
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
从接口复制的说明:ServiceRegistryAwareServiceCallback to inject the registry.- 指定者:
injectServices在接口中ServiceRegistryAwareService- 参数:
serviceRegistry- The registry
-
configure
public void configure(Map configValues)
从接口复制的说明:ConfigurableConfigure the service.- 指定者:
configure在接口中Configurable- 参数:
configValues- The configuration properties.
-
getJdbcEnvironment
public JdbcEnvironment getJdbcEnvironment()
从接口复制的说明:JdbcServicesObtain the JdbcEnvironment backing this JdbcServices instance.- 指定者:
getJdbcEnvironment在接口中JdbcServices
-
getBootstrapJdbcConnectionAccess
public JdbcConnectionAccess getBootstrapJdbcConnectionAccess()
从接口复制的说明:JdbcServicesObtain a JdbcConnectionAccess usable from bootstrap actions (hbm2ddl.auto, Dialect resolution, etc).- 指定者:
getBootstrapJdbcConnectionAccess在接口中JdbcServices
-
getDialect
public Dialect getDialect()
从接口复制的说明:JdbcServicesObtain the dialect of the database.- 指定者:
getDialect在接口中JdbcServices- 返回:
- The database dialect.
-
getSqlStatementLogger
public SqlStatementLogger getSqlStatementLogger()
从接口复制的说明:JdbcServicesObtain service for logging SQL statements.- 指定者:
getSqlStatementLogger在接口中JdbcServices- 返回:
- The SQL statement logger.
-
getSqlExceptionHelper
public SqlExceptionHelper getSqlExceptionHelper()
从接口复制的说明:JdbcServicesObtain service for dealing with exceptions.- 指定者:
getSqlExceptionHelper在接口中JdbcServices- 返回:
- The exception helper service.
-
getExtractedMetaDataSupport
public ExtractedDatabaseMetaData getExtractedMetaDataSupport()
从接口复制的说明:JdbcServicesObtain information about supported behavior reported by the JDBC driver. Yuck, yuck, yuck! Much prefer this to be part of a "basic settings" type object.- 指定者:
getExtractedMetaDataSupport在接口中JdbcServices- 返回:
- The extracted database metadata, oddly enough :)
-
getLobCreator
public LobCreator getLobCreator(LobCreationContext lobCreationContext)
从接口复制的说明:JdbcServicesCreate an instance of aLobCreatorappropriate for the current environment, mainly meant to account for variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5).- 指定者:
getLobCreator在接口中JdbcServices- 参数:
lobCreationContext- The context in which the LOB is being created- 返回:
- The LOB creator.
-
getResultSetWrapper
public ResultSetWrapper getResultSetWrapper()
从接口复制的说明:JdbcServicesObtain service for wrapping aResultSetin a "column name cache" wrapper.- 指定者:
getResultSetWrapper在接口中JdbcServices- 返回:
- The ResultSet wrapper.
-
-