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

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

public static class OracleDBAccess.BlobFromBFILE
extends java.lang.Object
implements java.sql.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()
          
 java.io.InputStream getBinaryStream()
          
 java.io.InputStream getBinaryStream(long pPos, long pLength)
          
 byte[] getBytes(long pPos, int pLength)
          
 long length()
          
 long position(java.sql.Blob pPattern, long pStart)
          
 long position(byte[] pPattern, long pStart)
          
 java.io.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 java.sql.SQLException

Specified by:
length in interface java.sql.Blob
Throws:
java.sql.SQLException

getBytes

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

Specified by:
getBytes in interface java.sql.Blob
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException

Specified by:
getBinaryStream in interface java.sql.Blob
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream(long pPos,
                                           long pLength)
                                    throws java.sql.SQLException

Specified by:
getBinaryStream in interface java.sql.Blob
Throws:
java.sql.SQLException

position

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

Specified by:
position in interface java.sql.Blob
Throws:
java.sql.SQLException

position

public long position(java.sql.Blob pPattern,
                     long pStart)
              throws java.sql.SQLException

Specified by:
position in interface java.sql.Blob
Throws:
java.sql.SQLException

setBytes

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

Specified by:
setBytes in interface java.sql.Blob
Throws:
java.sql.SQLException

setBytes

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

Specified by:
setBytes in interface java.sql.Blob
Throws:
java.sql.SQLException

setBinaryStream

public java.io.OutputStream setBinaryStream(long pos)
                                     throws java.sql.SQLException

Specified by:
setBinaryStream in interface java.sql.Blob
Throws:
java.sql.SQLException

truncate

public void truncate(long len)
              throws java.sql.SQLException

Specified by:
truncate in interface java.sql.Blob
Throws:
java.sql.SQLException

free

public void free()
          throws java.sql.SQLException

Specified by:
free in interface java.sql.Blob
Throws:
java.sql.SQLException


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.