com.sibvisions.rad.persist.jdbc
Class OracleDBAccess.BlobFromBFILE

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.OracleDBAccess.BlobFromBFILE
All Implemented Interfaces:
Blob
Enclosing class:
OracleDBAccess

public static class OracleDBAccess.BlobFromBFILE
extends Object
implements Blob

The Blob is the implementation for Oracle BFILE.


Constructor Summary
OracleDBAccess.BlobFromBFILE(oracle.sql.BFILE pBFILE)
          Gets a Blob compatible Object for BFile.
 
Method Summary
 void free()
          
 InputStream getBinaryStream()
          
 InputStream getBinaryStream(long pPos, long pLength)
          
 byte[] getBytes(long pPos, int pLength)
          
 long length()
          
 long position(Blob pPattern, long pStart)
          
 long position(byte[] pPattern, long pStart)
          
 OutputStream setBinaryStream(long pos)
          
 int setBytes(long pPos, byte[] pBytes)
          
 int setBytes(long pPos, byte[] pBytes, 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
 

Constructor Detail

OracleDBAccess.BlobFromBFILE

public OracleDBAccess.BlobFromBFILE(oracle.sql.BFILE pBFILE)
Gets a Blob compatible Object for BFile.

Parameters:
pBFILE - the bFile.
Method Detail

length

public long length()
            throws SQLException

Specified by:
length in interface Blob
Throws:
SQLException

getBytes

public byte[] getBytes(long pPos,
                       int pLength)
                throws SQLException

Specified by:
getBytes in interface Blob
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream()
                            throws SQLException

Specified by:
getBinaryStream in interface Blob
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream(long pPos,
                                   long pLength)
                            throws SQLException

Specified by:
getBinaryStream in interface Blob
Throws:
SQLException

position

public long position(byte[] pPattern,
                     long pStart)
              throws SQLException

Specified by:
position in interface Blob
Throws:
SQLException

position

public long position(Blob pPattern,
                     long pStart)
              throws SQLException

Specified by:
position in interface Blob
Throws:
SQLException

setBytes

public int setBytes(long pPos,
                    byte[] pBytes)
             throws SQLException

Specified by:
setBytes in interface Blob
Throws:
SQLException

setBytes

public int setBytes(long pPos,
                    byte[] pBytes,
                    int offset,
                    int len)
             throws SQLException

Specified by:
setBytes in interface Blob
Throws:
SQLException

setBinaryStream

public OutputStream setBinaryStream(long pos)
                             throws SQLException

Specified by:
setBinaryStream in interface Blob
Throws:
SQLException

truncate

public void truncate(long len)
              throws SQLException

Specified by:
truncate in interface Blob
Throws:
SQLException

free

public void free()
          throws SQLException

Specified by:
free in interface Blob
Throws:
SQLException


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.