org.apache.ojb.broker.platforms
Class BlobWrapper

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

public class BlobWrapper
extends java.lang.Object

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

Version:
CVS $Id: BlobWrapper.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Matthew Baird, Erik Forkalsrud, Martin Kalén

Constructor Summary
BlobWrapper()
           
 
Method Summary
 void close()
           
static BlobWrapper createTemporary(java.sql.Connection conn, boolean b, int i)
           
 void freeTemporary()
           
 java.io.OutputStream getBinaryOutputStream()
           
 java.io.InputStream getBinaryStream()
           
 java.lang.Object getBlob()
           
 int getBufferSize()
           
static int getDurationCallValue()
           
static int getDurationSessionValue()
           
static int getModeReadOnlyValue()
           
static int getModeReadWriteValue()
           
 boolean isOpen()
           
 void open(int i)
           
 void setBlob(java.lang.Object blob)
           
 void trim(long l)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobWrapper

public BlobWrapper()
Method Detail

getBlob

public java.lang.Object getBlob()

setBlob

public void setBlob(java.lang.Object blob)

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(java.sql.Connection conn,
                                          boolean b,
                                          int i)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

open

public void open(int i)
          throws java.sql.SQLException
Throws:
java.sql.SQLException

isOpen

public boolean isOpen()
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getBinaryStream

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

getBinaryOutputStream

public java.io.OutputStream getBinaryOutputStream()
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getBufferSize

public int getBufferSize()
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

trim

public void trim(long l)
          throws java.sql.SQLException
Throws:
java.sql.SQLException

freeTemporary

public void freeTemporary()
                   throws java.sql.SQLException
Throws:
java.sql.SQLException


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30