Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.internal

public Class JdbcServicesImpl

extends Object
implements JdbcServices, ServiceRegistryAwareService, Configurable
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.Configurable, org.hibernate.service.spi.ServiceRegistryAwareService, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.service.Service, java.io.Serializable
Imports
java.util.Map, org.hibernate.MultiTenancyStrategy, org.hibernate.cfg.Environment, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.LobCreationContext, .LobCreator, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator, org.hibernate.engine.jdbc.env.spi.ExtractedDatabaseMetaData, .JdbcEnvironment, org.hibernate.engine.jdbc.spi.JdbcServices, .ResultSetWrapper, .SqlExceptionHelper, .SqlStatementLogger, org.hibernate.internal.util.config.ConfigurationHelper, org.hibernate.service.spi.Configurable, .ServiceRegistryAwareService, .ServiceRegistryImplementor

Standard implementation of the JdbcServices contract
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private JdbcEnvironment
private MultiTenancyStrategy
private ResultSetWrapperImpl
resultSetWrapper

Deprecated as a consequence of ResultSetWrapperImpl being deprecated.
private ServiceRegistryImplementor
private SqlStatementLogger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(Map<K, V>
The configuration properties.
configValues
)

Implements org.hibernate.service.spi.Configurable.configure.

Configure the service.
public JdbcConnectionAccess
getBootstrapJdbcConnectionAccess()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getBootstrapJdbcConnectionAccess.

Obtain a JdbcConnectionAccess usable from bootstrap actions (hbm2ddl.auto, Dialect resolution, etc).
public Dialect
getDialect()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getDialect.

Obtain the dialect of the database.
public ExtractedDatabaseMetaData
getExtractedMetaDataSupport()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getExtractedMetaDataSupport.

Obtain information about supported behavior reported by the JDBC driver.
public JdbcEnvironment
getJdbcEnvironment()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getJdbcEnvironment.

Obtain the JdbcEnvironment backing this JdbcServices instance.
public LobCreator
getLobCreator(LobCreationContext
The context in which the LOB is being created
lobCreationContext
)

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getLobCreator.

Create an instance of a LobCreator appropriate for the current environment, mainly meant to account for variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5).
public ResultSetWrapper
getResultSetWrapper()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getResultSetWrapper.

Deprecated as a consequence of ResultSetWrapper being deprecated.
Obtain service for wrapping a java.sql.ResultSet in a "column name cache" wrapper.
public SqlExceptionHelper
getSqlExceptionHelper()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getSqlExceptionHelper.

Obtain service for dealing with exceptions.
public SqlStatementLogger
getSqlStatementLogger()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getSqlStatementLogger.

Obtain service for logging SQL statements.
public void
injectServices(ServiceRegistryImplementor
The registry
serviceRegistry
)

Implements org.hibernate.service.spi.ServiceRegistryAwareService.injectServices.

Callback to inject the registry.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jdbcEnvironmentback to summary
private JdbcEnvironment jdbcEnvironment
multiTenancyStrategyback to summary
private MultiTenancyStrategy multiTenancyStrategy
resultSetWrapperback to summary
private ResultSetWrapperImpl resultSetWrapper

Deprecated

as a consequence of ResultSetWrapperImpl being deprecated. See corresponding docs for further information.

serviceRegistryback to summary
private ServiceRegistryImplementor serviceRegistry
sqlStatementLoggerback to summary
private SqlStatementLogger sqlStatementLogger

Constructor Detail

JdbcServicesImplback to summary
public JdbcServicesImpl()

Method Detail

configureback to summary
public void configure(Map<K, V> configValues)

Implements org.hibernate.service.spi.Configurable.configure.

Doc from org.hibernate.service.spi.Configurable.configure.

Configure the service.

Parameters
configValues:Map<K, V>

The configuration properties.

Annotations
@Override
getBootstrapJdbcConnectionAccessback to summary
public JdbcConnectionAccess getBootstrapJdbcConnectionAccess()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getBootstrapJdbcConnectionAccess.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getBootstrapJdbcConnectionAccess.

Obtain a JdbcConnectionAccess usable from bootstrap actions (hbm2ddl.auto, Dialect resolution, etc).

Annotations
@Override
getDialectback to summary
public Dialect getDialect()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getDialect.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getDialect.

Obtain the dialect of the database.

Returns:Dialect

The database dialect.

Annotations
@Override
getExtractedMetaDataSupportback to summary
public ExtractedDatabaseMetaData getExtractedMetaDataSupport()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getExtractedMetaDataSupport.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.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:ExtractedDatabaseMetaData

The extracted database metadata, oddly enough :)

Annotations
@Override
getJdbcEnvironmentback to summary
public JdbcEnvironment getJdbcEnvironment()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getJdbcEnvironment.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getJdbcEnvironment.

Obtain the JdbcEnvironment backing this JdbcServices instance.

Annotations
@Override
getLobCreatorback to summary
public LobCreator getLobCreator(LobCreationContext lobCreationContext)

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getLobCreator.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getLobCreator.

Create an instance of a LobCreator appropriate for the current environment, mainly meant to account for variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5).

Parameters
lobCreationContext:LobCreationContext

The context in which the LOB is being created

Returns:LobCreator

The LOB creator.

Annotations
@Override
getResultSetWrapperback to summary
public ResultSetWrapper getResultSetWrapper()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getResultSetWrapper.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getResultSetWrapper.

Deprecated

as a consequence of ResultSetWrapper being deprecated. See corresponding docs for further information.

Obtain service for wrapping a java.sql.ResultSet in a "column name cache" wrapper.

Returns:ResultSetWrapper

The ResultSet wrapper.

Annotations
@Override
getSqlExceptionHelperback to summary
public SqlExceptionHelper getSqlExceptionHelper()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getSqlExceptionHelper.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getSqlExceptionHelper.

Obtain service for dealing with exceptions.

Returns:SqlExceptionHelper

The exception helper service.

Annotations
@Override
getSqlStatementLoggerback to summary
public SqlStatementLogger getSqlStatementLogger()

Implements org.hibernate.engine.jdbc.spi.JdbcServices.getSqlStatementLogger.

Doc from org.hibernate.engine.jdbc.spi.JdbcServices.getSqlStatementLogger.

Obtain service for logging SQL statements.

Returns:SqlStatementLogger

The SQL statement logger.

Annotations
@Override
injectServicesback to summary
public void injectServices(ServiceRegistryImplementor serviceRegistry)

Implements org.hibernate.service.spi.ServiceRegistryAwareService.injectServices.

Doc from org.hibernate.service.spi.ServiceRegistryAwareService.injectServices.

Callback to inject the registry.

Parameters
serviceRegistry:ServiceRegistryImplementor

The registry

Annotations
@Override