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.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

Contract for services around JDBC operations. These represent shared resources, aka not varied by session/use.
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

Returns:

The database 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 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 JDBC3 (>= JDK 1.5).

public ResultSetWrapper

Returns:

The ResultSet wrapper.
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

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.

Returns:Dialect

The database dialect.

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.

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 JDBC3 (>= JDK 1.5).

Parameters
lobCreationContext:LobCreationContext

The context in which the LOB is being created

Returns:LobCreator

The LOB creator.

getResultSetWrapperback to summary
public ResultSetWrapper 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.

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.