Package org.hibernate.engine.jdbc.spi
Interface JdbcServices
-
- All Superinterfaces:
Serializable,Service
- All Known Implementing Classes:
BasicTestingJdbcServiceImpl,JdbcServicesImpl
public interface JdbcServices extends Service
Provides access to services related to JDBC operations.These services represent shared resources that do not vary by session.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JdbcConnectionAccessgetBootstrapJdbcConnectionAccess()Obtain aJdbcConnectionAccessusable from bootstrap actions (hbm2ddl.auto,Dialectresolution, etc).DialectgetDialect()Obtain the dialect of the database.ExtractedDatabaseMetaDatagetExtractedMetaDataSupport()Obtain information about supported behavior reported by the JDBC driver.JdbcEnvironmentgetJdbcEnvironment()Obtain theJdbcEnvironmentbacking thisJdbcServicesinstance.default JdbcMutationExecutorgetJdbcMutationExecutor()Access the executor forJdbcOperationQueryMutationoperations.default JdbcSelectExecutorgetJdbcSelectExecutor()Access the executor forJdbcOperationQuerySelectoperations.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 JDBC 3 (>= JDK 1.5).ParameterMarkerStrategygetParameterMarkerStrategy()Obtains the service used for marking SQL parametersSqlExceptionHelpergetSqlExceptionHelper()Obtain service for dealing with exceptions.SqlStatementLoggergetSqlStatementLogger()Obtain service for logging SQL statements.
-
-
-
Method Detail
-
getJdbcEnvironment
JdbcEnvironment getJdbcEnvironment()
Obtain theJdbcEnvironmentbacking thisJdbcServicesinstance.
-
getBootstrapJdbcConnectionAccess
JdbcConnectionAccess getBootstrapJdbcConnectionAccess()
Obtain aJdbcConnectionAccessusable from bootstrap actions (hbm2ddl.auto,Dialectresolution, etc).
-
getDialect
Dialect getDialect()
Obtain the dialect of the database.
-
getSqlStatementLogger
SqlStatementLogger getSqlStatementLogger()
Obtain service for logging SQL statements.- Returns:
- The SQL statement logger.
-
getParameterMarkerStrategy
@Incubating ParameterMarkerStrategy getParameterMarkerStrategy()
Obtains the service used for marking SQL parameters- Returns:
- the registered ParameterMarkerStrategy implementation.
-
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
- JDBC 3 (>= JDK 1.5).
- Parameters:
lobCreationContext- The context in which the LOB is being created- Returns:
- The LOB creator.
-
getJdbcSelectExecutor
default JdbcSelectExecutor getJdbcSelectExecutor()
Access the executor forJdbcOperationQuerySelectoperations.
-
getJdbcMutationExecutor
default JdbcMutationExecutor getJdbcMutationExecutor()
Access the executor forJdbcOperationQueryMutationoperations.
-
-