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>
-
Method Summary
Modifier and TypeMethodDescriptionvoidfree()static BlobgenerateProxy(byte[] bytes) Generates a BlobImpl using byte data.static BlobgenerateProxy(InputStream stream, long length) Generates a BlobImpl proxy using a given number of bytes from an InputStream.getBinaryStream(long start, long length) byte[]getBytes(long start, int length) org.hibernate.engine.jdbc.BinaryStreamlonglength()longposition(byte[] pattern, long start) longsetBinaryStream(long pos) intsetBytes(long pos, byte[] bytes) intsetBytes(long pos, byte[] bytes, int offset, int len) voidtruncate(long len)
-
Method Details
-
getUnderlyingStream
- Specified by:
getUnderlyingStreamin interfaceorg.hibernate.engine.jdbc.BlobImplementer- Throws:
SQLException
-
generateProxy
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
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
- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
position
public long position(byte[] pattern, long start) -
position
-
setBytes
public int setBytes(long pos, byte[] bytes) -
setBytes
public int setBytes(long pos, byte[] bytes, int offset, int len) -
setBinaryStream
- Specified by:
setBinaryStreamin interfaceBlob
-
truncate
public void truncate(long len) -
free
public void free() -
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-