Class LobDataExtraction

java.lang.Object
org.hibernate.dialect.lob.spi.LobDataExtraction

@Incubating(since="8.0") @SPI(USE) public final class LobDataExtraction extends Object

Materializes LOB data using Hibernate's standard resource-handling and exception-conversion semantics.

Use these operations when a Dialect-specific JDBC type must materialize a driver LOB. The stream or reader used for extraction is closed; the caller remains responsible for freeing the JDBC LOB locator.

Since:
8.0
  • Method Details

    • extractBytes

      public static byte[] extractBytes(InputStream inputStream)
      Read all bytes from the supplied stream and close it.
    • extractString

      public static String extractString(Clob clob)
      Read all characters from the supplied CLOB and close its character stream without freeing the CLOB locator.