Package org.hibernate.engine.jdbc
Interface JdbcSupport
- All Known Implementing Classes:
JdbcSupportImpl
public interface JdbcSupport
Isolates Hibernate interactions with JDBC in terms of variations between JDBC 3 (JDK 1.4 and 1.5)
and JDBC 4 (JDK 1.6).
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getLobCreator(LobCreationContext lobCreationContext) Create an instance of aLobCreatorappropriate for the current environment, mainly meant to account for variance between JDBC 4 (invalid input: '<'= JDK 1.6) and JDBC3 (>= JDK 1.5).wrap(ResultSet resultSet, ColumnNameCache columnNameCache) Wrap the givenResultSetin one that caches the column-name -> column-index resolution.
-
Method Details
-
getLobCreator
LobCreator getLobCreator()Deprecated.UsegetLobCreator(LobCreationContext)instead.Creates an instance of aLobCreatorthat does not use the underlying JDBCConnectionto create LOBs. This method is here solely to support the older, now-deprecated method of creating LOBs via the variousHibernate.createBlob(byte[])andHibernate.createClob(java.lang.String)methods onHibernate.- Returns:
- The LOB creator.
-
getLobCreator
Create an instance of aLobCreatorappropriate for the current environment, mainly meant to account for variance between JDBC 4 (invalid input: '<'= JDK 1.6) and JDBC3 (>= JDK 1.5).- Parameters:
lobCreationContext- The context in which the LOB is being created- Returns:
- The LOB creator.
-
wrap
Wrap the givenResultSetin one that caches the column-name -> column-index resolution.- Parameters:
resultSet- TheResultSetto wrap.columnNameCache- The resolution cache.- Returns:
- The wrapper.
-
getLobCreator(LobCreationContext)instead.