接口 JdbcServices
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
JdbcServicesImpl
public interface JdbcServices extends Service
Contract for services around JDBC operations. These represent shared resources, aka not varied by session/use.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
getJdbcEnvironment
JdbcEnvironment getJdbcEnvironment()
Obtain the JdbcEnvironment backing this JdbcServices instance.
-
getBootstrapJdbcConnectionAccess
JdbcConnectionAccess getBootstrapJdbcConnectionAccess()
Obtain a JdbcConnectionAccess usable from bootstrap actions (hbm2ddl.auto, Dialect resolution, etc).
-
getDialect
Dialect getDialect()
Obtain the dialect of the database.- 返回:
- The database dialect.
-
getSqlStatementLogger
SqlStatementLogger getSqlStatementLogger()
Obtain service for logging SQL statements.- 返回:
- The SQL statement logger.
-
getSqlExceptionHelper
SqlExceptionHelper getSqlExceptionHelper()
Obtain service for dealing with exceptions.- 返回:
- The exception helper service.
-
getExtractedMetaDataSupport
ExtractedDatabaseMetaData getExtractedMetaDataSupport()
Obtain information about supported behavior reported by the JDBC driver. Yuck, yuck, yuck! Much prefer this to be part of a "basic settings" type object.- 返回:
- The extracted database metadata, oddly enough :)
-
getLobCreator
LobCreator getLobCreator(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).- 参数:
lobCreationContext- The context in which the LOB is being created- 返回:
- The LOB creator.
-
getResultSetWrapper
ResultSetWrapper getResultSetWrapper()
Obtain service for wrapping aResultSetin a "column name cache" wrapper.- 返回:
- The ResultSet wrapper.
-
-