Class LobCreationHelper
java.lang.Object
org.hibernate.engine.jdbc.env.internal.LobCreationHelper
Utilities for LOB creation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSupportedContextualLobTypes
(Dialect dialect, Map<String, Object> configValues, Connection jdbcConnection) Basically here we are simply checking whether we can call theConnection
methods for LOB creation added in JDBC 4.
-
Field Details
-
NONE
-
-
Constructor Details
-
LobCreationHelper
public LobCreationHelper()
-
-
Method Details
-
getSupportedContextualLobTypes
public static EnumSet<LobTypes> getSupportedContextualLobTypes(Dialect dialect, Map<String, Object> configValues, Connection jdbcConnection) Basically here we are simply checking whether we can call theConnection
methods for LOB creation added in JDBC 4. We not only check whether theConnection
declares these methods, but also whether the actualConnection
instance implements them (i.e. can be called without simply throwing an exception).- Parameters:
dialect
- TheDialect
in useconfigValues
- The map of settingsjdbcConnection
- The connection which can be used in level-of-support testing.
-