Class LobCreatorBuilderImpl
java.lang.Object
org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl
- All Implemented Interfaces:
LobCreatorBuilder
Builds
LobCreator instances based on the capabilities of the environment.-
Constructor Summary
ConstructorsConstructorDescriptionLobCreatorBuilderImpl(boolean useConnectionToCreateLob, EnumSet<LobTypes> supportedContextualLobTypes) -
Method Summary
Modifier and TypeMethodDescriptionbuildLobCreator(LobCreationContext lobCreationContext) Build aLobCreatorusing the given contextstatic LobCreatorBuilderImplmakeLobCreatorBuilder(Dialect dialect) For use when JDBCConnectionis not available.static LobCreatorBuilderImplmakeLobCreatorBuilder(Dialect dialect, Map<String, Object> configValues, Connection jdbcConnection) The public factory method for obtaining the appropriate LOB creator (according to given JDBCConnection).
-
Constructor Details
-
LobCreatorBuilderImpl
-
-
Method Details
-
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- TheDialectin useconfigValues- The map of settingsjdbcConnection- A JDBCConnectionwhich can be used to gauge the drivers level of support, specifically for creating LOB references.
-
makeLobCreatorBuilder
For use when JDBCConnectionis not available.- Returns:
- Appropriate LobCreatorBuilder
-
buildLobCreator
Build aLobCreatorusing the given context- Specified by:
buildLobCreatorin interfaceLobCreatorBuilder- Parameters:
lobCreationContext- The LOB creation context- Returns:
- The LobCreator
-