Package org.hibernate.engine.jdbc.spi
Interface JdbcServices
-
- All Superinterfaces:
java.io.Serializable,Service
- All Known Implementing Classes:
BasicTestingJdbcServiceImpl
public interface JdbcServices extends Service
Contract for services around JDBC operations. These represent shared resources, aka not varied by session/use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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.- Returns:
- The database dialect.
-
getSqlStatementLogger
SqlStatementLogger getSqlStatementLogger()
Obtain service for logging SQL statements.- Returns:
- The SQL statement logger.
-
getSqlExceptionHelper
SqlExceptionHelper getSqlExceptionHelper()
Obtain service for dealing with exceptions.- Returns:
- 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.- Returns:
- 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).- Parameters:
lobCreationContext- The context in which the LOB is being created- Returns:
- The LOB creator.
-
getResultSetWrapper
ResultSetWrapper getResultSetWrapper()
Obtain service for wrapping aResultSetin a "column name cache" wrapper.- Returns:
- The ResultSet wrapper.
-
-