Top Description Methods
org.hibernate.engine.jdbc.spi

public Interface JdbcServices

extends Service
Known Direct Implementers
org.hibernate.engine.jdbc.internal.JdbcServicesImpl
Imports
org.hibernate.Incubating, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.LobCreationContext, .LobCreator, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.engine.jdbc.env.spi.ExtractedDatabaseMetaData, .JdbcEnvironment, org.hibernate.service.Service, org.hibernate.sql.ast.spi.ParameterMarkerStrategy, org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl, .StandardJdbcMutationExecutor, org.hibernate.sql.exec.spi.JdbcMutationExecutor, .JdbcOperationQueryMutation, .JdbcOperationQuerySelect, .JdbcSelectExecutor

Provides access to services related to JDBC operations.

These services represent shared resources that do not vary by session.

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public JdbcConnectionAccess
getBootstrapJdbcConnectionAccess()

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

public Dialect
getDialect()

Obtain the dialect of the database.

public ExtractedDatabaseMetaData

Returns:

The extracted database metadata, oddly enough :)
getExtractedMetaDataSupport
()

Obtain information about supported behavior reported by the JDBC driver.

public JdbcEnvironment
getJdbcEnvironment()

Obtain the JdbcEnvironment backing this JdbcServices instance.

public default JdbcMutationExecutor
getJdbcMutationExecutor()

Access the executor for JdbcOperationQueryMutation operations.

public default JdbcSelectExecutor
getJdbcSelectExecutor()

Access the executor for JdbcOperationQuerySelect operations.

public LobCreator

Returns:

The LOB creator.
getLobCreator
(LobCreationContext
The context in which the LOB is being created
lobCreationContext
)

Create an instance of a LobCreator appropriate for the current environment, mainly meant to account for variance between:

  • JDBC 4 (<= JDK 1.6) and
  • JDBC 3 (>= JDK 1.5).
public ParameterMarkerStrategy

Returns:

the registered ParameterMarkerStrategy implementation.
getParameterMarkerStrategy
()

Obtains the service used for marking SQL parameters

public SqlExceptionHelper

Returns:

The exception helper service.
getSqlExceptionHelper
()

Obtain service for dealing with exceptions.

public SqlStatementLogger

Returns:

The SQL statement logger.
getSqlStatementLogger
()

Obtain service for logging SQL statements.

Method Detail

getBootstrapJdbcConnectionAccessback to summary
public JdbcConnectionAccess getBootstrapJdbcConnectionAccess()

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

getDialectback to summary
public Dialect getDialect()

Obtain the dialect of the database.

getExtractedMetaDataSupportback to summary
public 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:ExtractedDatabaseMetaData

The extracted database metadata, oddly enough :)

getJdbcEnvironmentback to summary
public JdbcEnvironment getJdbcEnvironment()

Obtain the JdbcEnvironment backing this JdbcServices instance.

getJdbcMutationExecutorback to summary
public default JdbcMutationExecutor getJdbcMutationExecutor()

Access the executor for JdbcOperationQueryMutation operations.

getJdbcSelectExecutorback to summary
public default JdbcSelectExecutor getJdbcSelectExecutor()

Access the executor for JdbcOperationQuerySelect operations.

getLobCreatorback to summary
public LobCreator getLobCreator(LobCreationContext lobCreationContext)

Create an instance of a LobCreator appropriate for the current environment, mainly meant to account for variance between:

  • JDBC 4 (<= JDK 1.6) and
  • JDBC 3 (>= JDK 1.5).
Parameters
lobCreationContext:LobCreationContext

The context in which the LOB is being created

Returns:LobCreator

The LOB creator.

getParameterMarkerStrategyback to summary
public ParameterMarkerStrategy getParameterMarkerStrategy()

Obtains the service used for marking SQL parameters

Returns:ParameterMarkerStrategy

the registered ParameterMarkerStrategy implementation.

Annotations
@Incubating
getSqlExceptionHelperback to summary
public SqlExceptionHelper getSqlExceptionHelper()

Obtain service for dealing with exceptions.

Returns:SqlExceptionHelper

The exception helper service.

getSqlStatementLoggerback to summary
public SqlStatementLogger getSqlStatementLogger()

Obtain service for logging SQL statements.

Returns:SqlStatementLogger

The SQL statement logger.