Package com.progress.open4gl
Class ProBlob
java.lang.Object
com.progress.open4gl.ProBlob
- All Implemented Interfaces:
Serializable,Blob
The representation (mapping) in the Java programming language of an SQL BLOB
value. An SQL BLOB is a built-in type that stores a Binary Large Object as a
column value in a row of a database table. The driver implements Blob using
an SQL locator(BLOB), which means that a Blob object contains a logical
pointer to the SQL BLOB data rather than the data itself. A Blob object is
valid for the duration of the transaction in which is was created.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()getBinaryStream(long pos, long length) byte[]getBytes(long pos, int length) longlength()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)
-
Constructor Details
-
ProBlob
public ProBlob(byte[] data) Constructor taking a byte array.- Parameters:
data- The byte array
-
-
Method Details
-
length
- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceBlob- Throws:
SQLException
-
truncate
- Specified by:
truncatein interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
free
- Specified by:
freein interfaceBlob- Throws:
SQLException
-