Class LobCreatorBuilderImpl

java.lang.Object
org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl
All Implemented Interfaces:
LobCreatorBuilder

public class LobCreatorBuilderImpl extends Object implements LobCreatorBuilder
Builds LobCreator instances based on the capabilities of the environment.
  • Constructor Details

    • LobCreatorBuilderImpl

      public LobCreatorBuilderImpl(boolean useConnectionToCreateLob, EnumSet<LobTypes> supportedContextualLobTypes)
  • 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 JDBC Connection).
      Parameters:
      dialect - The Dialect in use
      configValues - The map of settings
      jdbcConnection - A JDBC Connection which can be used to gauge the drivers level of support, specifically for creating LOB references.
    • makeLobCreatorBuilder

      public static LobCreatorBuilderImpl makeLobCreatorBuilder(Dialect dialect)
      For use 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 interface LobCreatorBuilder
      Parameters:
      lobCreationContext - The LOB creation context
      Returns:
      The LobCreator