org.axiondb.types
Class BlobSource

java.lang.Object
  extended by org.axiondb.jdbc.AbstractAxionBlob
      extended by org.axiondb.types.BlobSource
All Implemented Interfaces:
java.sql.Blob, AxionBlob

public class BlobSource
extends AbstractAxionBlob

A Blob wrapping a LobSource.

Version:
$Revision: 1.4 $ $Date: 2003/05/14 15:38:12 $

Constructor Summary
BlobSource(LobSource lob)
           
 
Method Summary
 java.io.InputStream getBinaryStream()
           
 byte[] getBytes(long pos, int length)
           
 long length()
           
 java.io.OutputStream setBinaryStream(long pos)
           
 void setLobSource(LobSource lob)
           
 void truncate(long length)
           
 
Methods inherited from class org.axiondb.jdbc.AbstractAxionBlob
free, getBinaryStream, position, position, setBytes, setBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobSource

public BlobSource(LobSource lob)
Method Detail

setLobSource

public void setLobSource(LobSource lob)

length

public long length()
            throws java.sql.SQLException
Specified by:
length in interface java.sql.Blob
Specified by:
length in interface AxionBlob
Overrides:
length in class AbstractAxionBlob
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
Overrides:
getBytes in class AbstractAxionBlob
Throws:
java.sql.SQLException - indicating this method is not supported.

truncate

public void truncate(long length)
              throws java.sql.SQLException
Specified by:
truncate in interface java.sql.Blob
Specified by:
truncate in interface AxionBlob
Overrides:
truncate in class AbstractAxionBlob
Throws:
java.sql.SQLException - indicating this method is not supported.

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
Specified by:
getBinaryStream in interface java.sql.Blob
Specified by:
getBinaryStream in interface AxionBlob
Overrides:
getBinaryStream in class AbstractAxionBlob
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
Overrides:
setBinaryStream in class AbstractAxionBlob
Throws:
java.sql.SQLException - indicating this method is not supported.