|
OpenAPI 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AQSQLBlob
This class describes a SQL BLOB object.
| Method Summary | |
|---|---|
void |
free()
This method frees the Blob object and releases the resources that it holds. |
byte[] |
getBytes(long pos,
int length)
Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes. |
long |
getLength()
Retrieves the length of the blob. |
int |
setBytes(long pos,
byte[] bytes)
Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written. |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int length)
Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written. |
| Method Detail |
|---|
void free()
throws Exception
Exception - If an error occurs releasing the Blob's resources.
byte[] getBytes(long pos,
int length)
throws Exception
pos - The ordinal position of the first byte in the BLOB value to be extracted; the first byte is at position 0.length - The number of consecutive bytes to be copied; the value for length must be 0 or greater.
If - there is an error accessing the BLOB value; if pos is less than 1 or length is less than 0.
Exception
long getLength()
throws Exception
Exception - If there is an error accessing the length of the BLOB.
int setBytes(long pos,
byte[] bytes)
throws Exception
pos - The position in the BLOB object at which to start writing; the first position is 0.bytes - The array of bytes to be written to the BLOB value that this Blob object represents.
If - there is an error accessing the BLOB value or if pos is less than 0.
Exception
int setBytes(long pos,
byte[] bytes,
int offset,
int length)
throws Exception
pos - The position in the BLOB object at which to start writing; the first position is 0.bytes - The array of bytes to be written to the BLOB value that this Blob object represents.offset - The offset into the array bytes at which to start reading the bytes to be setlength - The number of bytes to be written to the BLOB value from the array of bytes.
If - there is an error accessing the BLOB value or if pos is less than 0.
Exception
|
OpenAPI 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||