Class JpaCustomizedDataFeedFileLobRepository.BlobProxyHHH17770Fix

java.lang.Object
com.broadleafcommerce.datafeed.provider.jpa.repository.nontrackable.JpaCustomizedDataFeedFileLobRepository.BlobProxyHHH17770Fix
All Implemented Interfaces:
Blob, org.hibernate.engine.jdbc.BlobImplementer
Enclosing class:
JpaCustomizedDataFeedFileLobRepository<D extends JpaDataFeedFileLob>

public static final class JpaCustomizedDataFeedFileLobRepository.BlobProxyHHH17770Fix extends Object implements Blob, org.hibernate.engine.jdbc.BlobImplementer
  • Method Details

    • getUnderlyingStream

      public org.hibernate.engine.jdbc.BinaryStream getUnderlyingStream() throws SQLException
      Specified by:
      getUnderlyingStream in interface org.hibernate.engine.jdbc.BlobImplementer
      Throws:
      SQLException
    • generateProxy

      public static Blob generateProxy(byte[] bytes)
      Generates a BlobImpl using byte data.
      Parameters:
      bytes - The data to be created as a Blob.
      Returns:
      The BlobProxy instance to represent this data.
    • generateProxy

      public static Blob generateProxy(InputStream stream, long length)
      Generates a BlobImpl proxy using a given number of bytes from an InputStream.
      Parameters:
      stream - The input stream of bytes to be created as a Blob.
      length - The number of bytes from stream to be written to the Blob.
      Returns:
      The BlobProxy instance to represent this data.
    • length

      public long length() throws SQLException
      Specified by:
      length in interface Blob
      Throws:
      SQLException
    • getBytes

      public byte[] getBytes(long start, int length) throws SQLException
      Specified by:
      getBytes in interface Blob
      Throws:
      SQLException
    • getBinaryStream

      public InputStream getBinaryStream() throws SQLException
      Specified by:
      getBinaryStream in interface Blob
      Throws:
      SQLException
    • position

      public long position(byte[] pattern, long start)
      Specified by:
      position in interface Blob
    • position

      public long position(Blob pattern, long start)
      Specified by:
      position in interface Blob
    • setBytes

      public int setBytes(long pos, byte[] bytes)
      Specified by:
      setBytes in interface Blob
    • setBytes

      public int setBytes(long pos, byte[] bytes, int offset, int len)
      Specified by:
      setBytes in interface Blob
    • setBinaryStream

      public OutputStream setBinaryStream(long pos)
      Specified by:
      setBinaryStream in interface Blob
    • truncate

      public void truncate(long len)
      Specified by:
      truncate in interface Blob
    • free

      public void free()
      Specified by:
      free in interface Blob
    • getBinaryStream

      public InputStream getBinaryStream(long start, long length) throws SQLException
      Specified by:
      getBinaryStream in interface Blob
      Throws:
      SQLException