Class JdbcServicesImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.internal.JdbcServicesImpl
-
- All Implemented Interfaces:
Serializable,JdbcServices,Service,Configurable,ServiceRegistryAwareService
public class JdbcServicesImpl extends Object implements JdbcServices, ServiceRegistryAwareService, Configurable
Standard implementation of theJdbcServicescontract- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JdbcServicesImpl()JdbcServicesImpl(ServiceRegistryImplementor serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Map<String,Object> configValues)Configure the service.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.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.voidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.engine.jdbc.spi.JdbcServices
getJdbcMutationExecutor, getJdbcSelectExecutor
-
-
-
-
Constructor Detail
-
JdbcServicesImpl
public JdbcServicesImpl()
-
JdbcServicesImpl
public JdbcServicesImpl(ServiceRegistryImplementor serviceRegistry)
-
-
Method Detail
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
Description copied from interface:ServiceRegistryAwareServiceCallback to inject the registry.- Specified by:
injectServicesin interfaceServiceRegistryAwareService- Parameters:
serviceRegistry- The registry
-
configure
public void configure(Map<String,Object> configValues)
Description copied from interface:ConfigurableConfigure the service.- Specified by:
configurein interfaceConfigurable- Parameters:
configValues- The configuration properties.
-
getJdbcEnvironment
public JdbcEnvironment getJdbcEnvironment()
Description copied from interface:JdbcServicesObtain theJdbcEnvironmentbacking thisJdbcServicesinstance.- Specified by:
getJdbcEnvironmentin interfaceJdbcServices
-
getBootstrapJdbcConnectionAccess
public JdbcConnectionAccess getBootstrapJdbcConnectionAccess()
Description copied from interface:JdbcServicesObtain aJdbcConnectionAccessusable from bootstrap actions (hbm2ddl.auto,Dialectresolution, etc).- Specified by:
getBootstrapJdbcConnectionAccessin interfaceJdbcServices
-
getDialect
public Dialect getDialect()
Description copied from interface:JdbcServicesObtain the dialect of the database.- Specified by:
getDialectin interfaceJdbcServices
-
getSqlStatementLogger
public SqlStatementLogger getSqlStatementLogger()
Description copied from interface:JdbcServicesObtain service for logging SQL statements.- Specified by:
getSqlStatementLoggerin interfaceJdbcServices- Returns:
- The SQL statement logger.
-
getParameterMarkerStrategy
public ParameterMarkerStrategy getParameterMarkerStrategy()
Description copied from interface:JdbcServicesObtains the service used for marking SQL parameters- Specified by:
getParameterMarkerStrategyin interfaceJdbcServices- Returns:
- the registered ParameterMarkerStrategy implementation.
-
getSqlExceptionHelper
public SqlExceptionHelper getSqlExceptionHelper()
Description copied from interface:JdbcServicesObtain service for dealing with exceptions.- Specified by:
getSqlExceptionHelperin interfaceJdbcServices- Returns:
- The exception helper service.
-
getExtractedMetaDataSupport
public ExtractedDatabaseMetaData getExtractedMetaDataSupport()
Description copied from interface: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.
- Specified by:
getExtractedMetaDataSupportin interfaceJdbcServices- Returns:
- The extracted database metadata, oddly enough :)
-
getLobCreator
public LobCreator getLobCreator(LobCreationContext lobCreationContext)
Description copied from interface:JdbcServicesCreate 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).
- Specified by:
getLobCreatorin interfaceJdbcServices- Parameters:
lobCreationContext- The context in which the LOB is being created- Returns:
- The LOB creator.
-
-