Top Description Methods
org.hibernate.engine.jdbc

public Interface JdbcSupport

Known Direct Implementers
org.hibernate.engine.jdbc.JdbcSupportImpl
Imports
java.sql.ResultSet

Isolates Hibernate interactions with JDBC in terms of variations between JDBC 3 (JDK 1.4 and 1.5) and JDBC 4 (JDK 1.6).
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public LobCreator

Returns:

The LOB creator.
getLobCreator
()

Deprecated Use getLobCreator(LobCreationContext) instead.
Creates an instance of a LobCreator that does not use the underlying JDBC java.sql.Connection to create LOBs.
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 ResultSet

Returns:

The wrapper.
wrap
(ResultSet
The ResultSet to wrap.
resultSet
,
ColumnNameCache
The resolution cache.
columnNameCache
)

Wrap the given ResultSet in one that caches the column-name -> column-index resolution.

Method Detail

getLobCreatorback to summary
public LobCreator getLobCreator()

Deprecated

Use getLobCreator(LobCreationContext) instead.

Creates an instance of a LobCreator that does not use the underlying JDBC java.sql.Connection to create LOBs.

This method is here solely to support the older, now-deprecated method of creating LOBs via the various org.hibernate.Hibernate#createBlob and org.hibernate.Hibernate#createClob methods on org.hibernate.Hibernate.

Returns:LobCreator

The LOB creator.

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.

wrapback to summary
public ResultSet wrap(ResultSet resultSet, ColumnNameCache columnNameCache)

Wrap the given ResultSet in one that caches the column-name -> column-index resolution.

Parameters
resultSet:ResultSet

The ResultSet to wrap.

columnNameCache:ColumnNameCache

The resolution cache.

Returns:ResultSet

The wrapper.