Class LobCreatorBuilderImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl
-
- All Implemented Interfaces:
LobCreatorBuilder
public class LobCreatorBuilderImpl extends Object implements LobCreatorBuilder
BuildsLobCreator
instances based on the capabilities of the environment.
-
-
Constructor Summary
Constructors Constructor Description LobCreatorBuilderImpl(EnumSet<LobTypes> supportedContextualLobTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LobCreator
buildLobCreator(LobCreationContext lobCreationContext)
Build a LobCreator using the given contextstatic LobCreatorBuilderImpl
makeLobCreatorBuilder()
For used when JDBC Connection is not available.static LobCreatorBuilderImpl
makeLobCreatorBuilder(Dialect dialect, Map<String,Object> configValues, Connection jdbcConnection)
The public factory method for obtaining the appropriate LOB creator (according to given JDBCConnection
).
-
-
-
Method Detail
-
makeLobCreatorBuilder
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 JDBCConnection
).- Parameters:
dialect
- TheDialect
in useconfigValues
- The map of settingsjdbcConnection
- A JDBCConnection
which can be used to gauge the drivers level of support, specifically for creating LOB references.
-
makeLobCreatorBuilder
public static LobCreatorBuilderImpl makeLobCreatorBuilder()
For used when JDBC Connection is not available.- Returns:
- Appropriate LobCreatorBuilder
-
buildLobCreator
public LobCreator buildLobCreator(LobCreationContext lobCreationContext)
Build a LobCreator using the given context- Specified by:
buildLobCreator
in interfaceLobCreatorBuilder
- Parameters:
lobCreationContext
- The LOB creation context- Returns:
- The LobCreator
-
-