public interface

JdbcSupport

org.hibernate.engine.jdbc.JdbcSupport
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract LobCreator getLobCreator()
This method is deprecated. Use getLobCreator(LobCreationContext) instead.
abstract 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).
abstract ResultSet wrap(ResultSet resultSet, ColumnNameCache columnNameCache)
Wrap the given ResultSet in one that caches the column-name -> column-index resolution.

Public Methods

public abstract LobCreator getLobCreator ()

This method is deprecated.
Use getLobCreator(LobCreationContext) instead.

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

This method is here solely to support the older, now-deprecated method of creating LOBs via the various createBlob(byte[]) and createClob(Reader, int) methods on Hibernate.

Returns
  • The LOB creator.

public abstract 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 The context in which the LOB is being created
Returns
  • The LOB creator.

public abstract ResultSet wrap (ResultSet resultSet, ColumnNameCache columnNameCache)

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

Parameters
resultSet The ResultSet to wrap.
columnNameCache The resolution cache.
Returns
  • The wrapper.