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 TypeMethodDescriptionvoid
free()
getBinaryStream
(long pos, long length) byte[]
getBytes
(long pos, int length) long
length()
long
position
(byte[] pattern, long start) long
setBinaryStream
(long pos) int
setBytes
(long pos, byte[] bytes) int
setBytes
(long pos, byte[] bytes, int offset, int len) void
truncate
(long len)
-
Constructor Details
-
ProBlob
public ProBlob(byte[] data) Constructor taking a byte array.- Parameters:
data
- The byte array
-
-
Method Details
-
length
- Specified by:
length
in interfaceBlob
- Throws:
SQLException
-
getBytes
- Specified by:
getBytes
in interfaceBlob
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceBlob
- Throws:
SQLException
-
position
- Specified by:
position
in interfaceBlob
- Throws:
SQLException
-
position
- Specified by:
position
in interfaceBlob
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfaceBlob
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfaceBlob
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfaceBlob
- Throws:
SQLException
-
truncate
- Specified by:
truncate
in interfaceBlob
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceBlob
- Throws:
SQLException
-
free
- Specified by:
free
in interfaceBlob
- Throws:
SQLException
-