Package org.hibernate.engine.jdbc
Class JdbcSupportImpl
java.lang.Object
org.hibernate.engine.jdbc.JdbcSupportImpl
- All Implemented Interfaces:
JdbcSupport
TODO : javadoc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of aLobCreatorthat does not use the underlying JDBCConnectionto create LOBs.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.
-
Constructor Details
-
JdbcSupportImpl
public JdbcSupportImpl(boolean useContextualLobCreation)
-
-
Method Details
-
getLobCreator
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.- Specified by:
getLobCreatorin interfaceJdbcSupport- Returns:
- The LOB creator.
-
getLobCreator
Description copied from interface:JdbcSupportCreate 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).- Specified by:
getLobCreatorin interfaceJdbcSupport- Parameters:
lobCreationContext- The context in which the LOB is being created- Returns:
- The LOB creator.
-
wrap
Description copied from interface:JdbcSupportWrap the givenResultSetin one that caches the column-name -> column-index resolution.- Specified by:
wrapin interfaceJdbcSupport- Parameters:
resultSet- TheResultSetto wrap.columnNameCache- The resolution cache.- Returns:
- The wrapper.
-