| java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.ByteArrayBlob
ByteArrayBlob | final public class ByteArrayBlob implements Blob(Code) | | The representation (mapping) in the JavaTM
programming language of an SQL BLOB value to an array of bytes.
A ByteArrayBlob contains an internal buffer that contains bytes that may be
read from the stream. The Blob interface provides methods for
getting the length of an SQL BLOB (Binary Large Object) value,
for materializing a BLOB value on the client, and for
determining the position of a pattern of bytes within a BLOB
value. The ByteArrayBlob has static factory methods for construting an
BLOB using either an existing serializable object, or an array
of bytes. This is a nice way to store serialized objects in a relational
field of type SQL BLOB .
author: Andrew McCulloch version: $Revision: 63479 $ |
ByteArrayBlob | public ByteArrayBlob(byte[] bytes)(Code) | | |
setBytes | public int setBytes(long pos, byte[] bytes, int offset, int length) throws SQLException(Code) | | |
|
|