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

public Class LobCreatorBuilderImpl

extends Object
implements LobCreatorBuilder
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.env.spi.LobCreatorBuilder
Imports
java.sql.Connection, java.util.EnumSet, .Map, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.LobCreationContext, .LobCreator, .NonContextualLobCreator, org.hibernate.engine.jdbc.env.spi.LobCreatorBuilder

Builds LobCreator instances based on the capabilities of the environment.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final EnumSet<LobTypes>

Constructor Summary

AccessConstructor and Description
public
LobCreatorBuilderImpl(EnumSet<LobTypes> supportedContextualLobTypes)

Method Summary

Modifier and TypeMethod and Description
public LobCreator

Returns:

The LobCreator
buildLobCreator
(LobCreationContext
The LOB creation context
lobCreationContext
)

Implements org.hibernate.engine.jdbc.env.spi.LobCreatorBuilder.buildLobCreator.

Build a LobCreator using the given context
public static LobCreatorBuilderImpl
makeLobCreatorBuilder(Dialect
The Dialect in use
dialect
,
Map<String, Object>
The map of settings
configValues
,
Connection
A JDBC Connection which can be used to gauge the drivers level of support, specifically for creating LOB references.
jdbcConnection
)

The public factory method for obtaining the appropriate LOB creator (according to given JDBC Connection).

public static LobCreatorBuilderImpl

Returns:

Appropriate LobCreatorBuilder
makeLobCreatorBuilder
()

For used when JDBC Connection is not available.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

supportedContextualLobTypesback to summary
private final EnumSet<LobTypes> supportedContextualLobTypes

Constructor Detail

LobCreatorBuilderImplback to summary
public LobCreatorBuilderImpl(EnumSet<LobTypes> supportedContextualLobTypes)

Method Detail

buildLobCreatorback to summary
public LobCreator buildLobCreator(LobCreationContext lobCreationContext)

Implements org.hibernate.engine.jdbc.env.spi.LobCreatorBuilder.buildLobCreator.

Build a LobCreator using the given context

Parameters
lobCreationContext:LobCreationContext

The LOB creation context

Returns:LobCreator

The LobCreator

makeLobCreatorBuilderback to summary
public static LobCreatorBuilderImpl makeLobCreatorBuilder(Dialect dialect, Map<String, Object> configValues, Connection jdbcConnection)

The public factory method for obtaining the appropriate LOB creator (according to given JDBC Connection).

Parameters
dialect:Dialect

The Dialect in use

configValues:Map<String, Object>

The map of settings

jdbcConnection:Connection

A JDBC Connection which can be used to gauge the drivers level of support, specifically for creating LOB references.

makeLobCreatorBuilderback to summary
public static LobCreatorBuilderImpl makeLobCreatorBuilder()

For used when JDBC Connection is not available.

Returns:LobCreatorBuilderImpl

Appropriate LobCreatorBuilder