Class DelegatingLobSupport

java.lang.Object
org.hibernate.dialect.lob.spi.DelegatingLobSupport
All Implemented Interfaces:
LobSupport

@SPI(IMPLEMENT) public abstract class DelegatingLobSupport extends Object implements LobSupport
Provider base which forwards the complete LOB contract to one stable delegate. Override only the provider-specific differences.
Since:
8.0
  • Constructor Details

    • DelegatingLobSupport

      @SPI(IMPLEMENT) protected DelegatingLobSupport(LobSupport delegate)
      Create a selectively overriding strategy around a non-null delegate.
  • Method Details

    • supportsJdbcConnectionLobCreation

      public boolean supportsJdbcConnectionLobCreation(@Nullable DatabaseMetaData databaseMetaData)
      Description copied from interface: LobSupport
      Determine whether JDBC Connection LOB factories may be used. Accept null metadata and do not retain it.
      Specified by:
      supportsJdbcConnectionLobCreation in interface LobSupport
    • useInputStreamToInsertBlob

      public boolean useInputStreamToInsertBlob()
      Description copied from interface: LobSupport
      Whether LOB values are bound using stream operations.
      Specified by:
      useInputStreamToInsertBlob in interface LobSupport
    • useConnectionToCreateLob

      public boolean useConnectionToCreateLob()
      Description copied from interface: LobSupport
      Whether LOB locators must be created using JDBC Connection factories.
      Specified by:
      useConnectionToCreateLob in interface LobSupport
    • supportsMaterializedLobAccess

      public boolean supportsMaterializedLobAccess()
      Description copied from interface: LobSupport
      Whether the driver supports materialized byte and String LOB access.
      Specified by:
      supportsMaterializedLobAccess in interface LobSupport
    • useMaterializedLobWhenCapacityExceeded

      public boolean useMaterializedLobWhenCapacityExceeded()
      Description copied from interface: LobSupport
      Whether over-capacity varying mappings become materialized LOB mappings.
      Specified by:
      useMaterializedLobWhenCapacityExceeded in interface LobSupport
    • forceLobAsLastValue

      public boolean forceLobAsLastValue()
      Description copied from interface: LobSupport
      Whether LOB assignments must occur last in insert and update statements.
      Specified by:
      forceLobAsLastValue in interface LobSupport
    • isLobType

      public boolean isLobType(int sqlTypeCode)
      Description copied from interface: LobSupport
      Classify a JDBC or Hibernate SQL type code as a locator-oriented LOB.
      Specified by:
      isLobType in interface LobSupport
    • getValueLobFragmentForExtraCreateTableInfo

      @Nullable public String getValueLobFragmentForExtraCreateTableInfo(String columnName)
      Description copied from interface: LobSupport
      Render the complete column-specific VALUE LOB CREATE TABLE fragment, or return null when VALUE LOB DDL is unsupported.
      Specified by:
      getValueLobFragmentForExtraCreateTableInfo in interface LobSupport