com.ibm.jtopenlite.database.jdbc
Class JDBCBlobLocator

java.lang.Object
  extended by com.ibm.jtopenlite.database.jdbc.JDBCBlobLocator
All Implemented Interfaces:
DatabaseLOBDataCallback, Blob

public final class JDBCBlobLocator
extends Object
implements Blob, DatabaseLOBDataCallback


Constructor Summary
JDBCBlobLocator(DatabaseConnection conn, DatabaseRetrieveLOBDataAttributes attrib)
           
 
Method Summary
 void free()
           
 InputStream getBinaryStream()
           
 InputStream getBinaryStream(long pos, long length)
           
 byte[] getBytes(long pos, int length)
           
 byte[] getLOBBuffer()
           
 long length()
           
 void newLOBData(int ccsid, int length)
           
 void newLOBLength(long length)
           
 void newLOBSegment(byte[] buffer, int offset, int length)
           
 long position(Blob pattern, long start)
          Not implemented.
 long position(byte[] pattern, long start)
          Not implemented.
 void refreshLength()
           
 OutputStream setBinaryStream(long pos)
          Not implemented.
 int setBytes(long pos, byte[] bytes)
          Not implemented.
 int setBytes(long pos, byte[] bytes, int offset, int len)
          Not implemented.
 void truncate(long len)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCBlobLocator

public JDBCBlobLocator(DatabaseConnection conn,
                       DatabaseRetrieveLOBDataAttributes attrib)
Method Detail

newLOBLength

public void newLOBLength(long length)
Specified by:
newLOBLength in interface DatabaseLOBDataCallback

newLOBData

public void newLOBData(int ccsid,
                       int length)
Specified by:
newLOBData in interface DatabaseLOBDataCallback

getLOBBuffer

public byte[] getLOBBuffer()
Specified by:
getLOBBuffer in interface DatabaseLOBDataCallback

newLOBSegment

public void newLOBSegment(byte[] buffer,
                          int offset,
                          int length)
Specified by:
newLOBSegment in interface DatabaseLOBDataCallback

getBinaryStream

public InputStream getBinaryStream()
                            throws SQLException
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream(long pos,
                                   long length)
                            throws SQLException
Throws:
SQLException

getBytes

public byte[] getBytes(long pos,
                       int length)
                throws SQLException
Throws:
SQLException

refreshLength

public void refreshLength()
                   throws SQLException
Throws:
SQLException

length

public long length()
            throws SQLException
Throws:
SQLException

position

public long position(Blob pattern,
                     long start)
              throws SQLException
Not implemented.

Throws:
SQLException

position

public long position(byte[] pattern,
                     long start)
              throws SQLException
Not implemented.

Throws:
SQLException

setBinaryStream

public OutputStream setBinaryStream(long pos)
                             throws SQLException
Not implemented.

Throws:
SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes)
             throws SQLException
Not implemented.

Throws:
SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
             throws SQLException
Not implemented.

Throws:
SQLException

truncate

public void truncate(long len)
              throws SQLException
Not implemented.

Throws:
SQLException

free

public void free()
          throws SQLException
Throws:
SQLException