org.hibernate.engine.jdbc
public class JdbcSupportImpl extends java.lang.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). |
java.sql.ResultSet |
wrap(java.sql.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 JdbcSupport
public LobCreator getLobCreator(LobCreationContext lobCreationContext)
JdbcSupport
LobCreator
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 JdbcSupport
lobCreationContext
- The context in which the LOB is being createdpublic java.sql.ResultSet wrap(java.sql.ResultSet resultSet, ColumnNameCache columnNameCache)
JdbcSupport
ResultSet
in one that caches the column-name -> column-index resolution.wrap
in interface JdbcSupport
resultSet
- The ResultSet
to wrap.columnNameCache
- The resolution cache.Copyright © 2014. All Rights Reserved.