org.axiondb.jdbc
Class AbstractAxionBlob
java.lang.Object
org.axiondb.jdbc.AbstractAxionBlob
- All Implemented Interfaces:
- java.sql.Blob, AxionBlob
- Direct Known Subclasses:
- BlobSource
public class AbstractAxionBlob
- extends java.lang.Object
- implements AxionBlob
Abstract base implementation of AxionBlob
.
- Version:
- $Revision: 1.4 $ $Date: 2007/11/13 19:04:01 $
Method Summary |
void |
free()
|
java.io.InputStream |
getBinaryStream()
|
java.io.InputStream |
getBinaryStream(long arg0,
long arg1)
|
byte[] |
getBytes(long pos,
int length)
|
long |
length()
|
long |
position(java.sql.Blob pattern,
long start)
|
long |
position(byte[] pattern,
long start)
|
java.io.OutputStream |
setBinaryStream(long pos)
|
int |
setBytes(long pos,
byte[] bytes)
Invokes setBytes(pos,bytes,0,bytes.length) |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
|
void |
truncate(long len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAxionBlob
public AbstractAxionBlob()
getBinaryStream
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
- Specified by:
getBinaryStream
in interface java.sql.Blob
- Specified by:
getBinaryStream
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
getBytes
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
- Specified by:
getBytes
in interface java.sql.Blob
- Specified by:
getBytes
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
length
public long length()
throws java.sql.SQLException
- Specified by:
length
in interface java.sql.Blob
- Specified by:
length
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
position
public long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
- Specified by:
position
in interface java.sql.Blob
- Specified by:
position
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
position
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
- Specified by:
position
in interface java.sql.Blob
- Specified by:
position
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
setBinaryStream
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
- Specified by:
setBinaryStream
in interface java.sql.Blob
- Specified by:
setBinaryStream
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
setBytes
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
- Invokes
setBytes(pos,bytes,0,bytes.length)
- Specified by:
setBytes
in interface java.sql.Blob
- Specified by:
setBytes
in interface AxionBlob
- Throws:
java.sql.SQLException
setBytes
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
- Specified by:
setBytes
in interface java.sql.Blob
- Specified by:
setBytes
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
truncate
public void truncate(long len)
throws java.sql.SQLException
- Specified by:
truncate
in interface java.sql.Blob
- Specified by:
truncate
in interface AxionBlob
- Throws:
java.sql.SQLException
- indicating this method is not supported.
free
public void free()
throws java.sql.SQLException
- Specified by:
free
in interface java.sql.Blob
- Throws:
java.sql.SQLException
getBinaryStream
public java.io.InputStream getBinaryStream(long arg0,
long arg1)
throws java.sql.SQLException
- Specified by:
getBinaryStream
in interface java.sql.Blob
- Throws:
java.sql.SQLException