public class JdbcSupportImpl extends Object implements JdbcSupport
| Constructor and Description |
|---|
JdbcSupportImpl(boolean useContextualLobCreation) |
| Modifier and Type | Method and Description |
|---|---|
LobCreator |
getLobCreator()
Creates an instance of a
LobCreator that does not use the underlying JDBC Connection
to create LOBs. |
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). |
ResultSet |
wrap(ResultSet resultSet,
ColumnNameCache columnNameCache)
Wrap the given
ResultSet in one that caches the column-name -> column-index resolution. |
public LobCreator getLobCreator()
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 Hibernate.createBlob(byte[]) and Hibernate.createClob(java.lang.String) methods on
Hibernate.getLobCreator in interface JdbcSupportpublic LobCreator getLobCreator(LobCreationContext lobCreationContext)
JdbcSupportLobCreator appropriate for the current environment, mainly meant to account for
variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5).getLobCreator in interface JdbcSupportlobCreationContext - The context in which the LOB is being createdpublic ResultSet wrap(ResultSet resultSet, ColumnNameCache columnNameCache)
JdbcSupportResultSet in one that caches the column-name -> column-index resolution.wrap in interface JdbcSupportresultSet - The ResultSet to wrap.columnNameCache - The resolution cache.Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved