Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.env.internal

public Class LobCreationHelper

extends Object
Class Inheritance
Imports
java.sql.Clob, .Connection, .DatabaseMetaData, .SQLException, java.util.EnumSet, .Map, org.hibernate.cfg.Environment, org.hibernate.dialect.Dialect, org.hibernate.internal.util.config.ConfigurationHelper

Utilities for LOB creation
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final EnumSet<LobTypes>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
canCreateClob(Connection jdbcConnection)

private static boolean
canCreateNClob(Connection jdbcConnection)

public static EnumSet<LobTypes>
getSupportedContextualLobTypes(Dialect
The Dialect in use
dialect
,
Map<String, Object>
The map of settings
configValues
,
Connection
The connection which can be used in level-of-support testing.
jdbcConnection
)

Basically here we are simply checking whether we can call the Connection methods for LOB creation added in JDBC 4.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NONEback to summary
public static final EnumSet<LobTypes> NONE

Constructor Detail

LobCreationHelperback to summary
public LobCreationHelper()

Method Detail

canCreateClobback to summary
private static boolean canCreateClob(Connection jdbcConnection)
canCreateNClobback to summary
private static boolean canCreateNClob(Connection jdbcConnection)
getSupportedContextualLobTypesback to summary
public static EnumSet<LobTypes> getSupportedContextualLobTypes(Dialect dialect, Map<String, Object> configValues, Connection jdbcConnection)

Basically here we are simply checking whether we can call the Connection methods for LOB creation added in JDBC 4. We not only check whether the Connection declares these methods, but also whether the actual Connection instance implements them (i.e. can be called without simply throwing an exception).

Parameters
dialect:Dialect

The Dialect in use

configValues:Map<String, Object>

The map of settings

jdbcConnection:Connection

The connection which can be used in level-of-support testing.