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 aLobCreator
using the given contextstatic LobCreatorBuilderImpl
makeLobCreatorBuilder
(Dialect dialect) For use when JDBCConnection
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
).
-
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
- 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
For use when JDBCConnection
is not available.- Returns:
- Appropriate LobCreatorBuilder
-
buildLobCreator
Build aLobCreator
using the given context- Specified by:
buildLobCreator
in interfaceLobCreatorBuilder
- Parameters:
lobCreationContext
- The LOB creation context- Returns:
- The LobCreator
-