org.apache.ojb.broker.platforms
Class BlobWrapper

java.lang.Object
  extended by org.apache.ojb.broker.platforms.BlobWrapper

public class BlobWrapper
extends Object

Wraps the Oracle BLOB type and makes it accessible via reflection without having to import the Oracle Classes.

Version:
CVS $Id: BlobWrapper.java,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
Author:
Matthew Baird, Erik Forkalsrud, Martin Kalén

Field Summary
protected static Method close
           
protected static Method createTemporary
           
protected static Field durationCall
           
protected static Field durationSession
           
protected static Method freeTemporary
           
protected static Method getBinaryOutputStream
           
protected static Method getBinaryStream
           
protected static Method getBufferSize
           
protected static Method isOpen
           
protected  Object m_blob
           
protected static Field modeReadOnly
           
protected static Field modeReadWrite
           
protected static Method open
           
protected static Method trim
           
 
Constructor Summary
BlobWrapper()
           
 
Method Summary
 void close()
           
static BlobWrapper createTemporary(Connection conn, boolean b, int i)
           
 void freeTemporary()
           
 OutputStream getBinaryOutputStream()
           
 InputStream getBinaryStream()
           
 Object getBlob()
           
 int getBufferSize()
           
static int getDurationCallValue()
           
static int getDurationSessionValue()
           
static int getModeReadOnlyValue()
           
static int getModeReadWriteValue()
           
 boolean isOpen()
           
 void open(int i)
           
 void setBlob(Object blob)
           
protected static int staticIntFieldValue(Field field)
           
 void trim(long l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_blob

protected Object m_blob

durationSession

protected static Field durationSession

durationCall

protected static Field durationCall

modeReadOnly

protected static Field modeReadOnly

modeReadWrite

protected static Field modeReadWrite

createTemporary

protected static Method createTemporary

freeTemporary

protected static Method freeTemporary

open

protected static Method open

isOpen

protected static Method isOpen

getBinaryStream

protected static Method getBinaryStream

getBinaryOutputStream

protected static Method getBinaryOutputStream

getBufferSize

protected static Method getBufferSize

close

protected static Method close

trim

protected static Method trim
Constructor Detail

BlobWrapper

public BlobWrapper()
Method Detail

getBlob

public Object getBlob()

setBlob

public void setBlob(Object blob)

staticIntFieldValue

protected static int staticIntFieldValue(Field field)

getDurationSessionValue

public static int getDurationSessionValue()

getDurationCallValue

public static int getDurationCallValue()

getModeReadOnlyValue

public static int getModeReadOnlyValue()

getModeReadWriteValue

public static int getModeReadWriteValue()

createTemporary

public static BlobWrapper createTemporary(Connection conn,
                                          boolean b,
                                          int i)
                                   throws Exception
Throws:
Exception

open

public void open(int i)
          throws SQLException
Throws:
SQLException

isOpen

public boolean isOpen()
               throws SQLException
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream()
                            throws SQLException
Throws:
SQLException

getBinaryOutputStream

public OutputStream getBinaryOutputStream()
                                   throws SQLException
Throws:
SQLException

getBufferSize

public int getBufferSize()
                  throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

trim

public void trim(long l)
          throws SQLException
Throws:
SQLException

freeTemporary

public void freeTemporary()
                   throws SQLException
Throws:
SQLException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.