org.apache.ojb.broker.platforms
Class ClobWrapper

java.lang.Object
  extended byorg.apache.ojb.broker.platforms.ClobWrapper

public class ClobWrapper
extends java.lang.Object

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

Version:
CVS $Id$
Author:
Matthew Baird, Martin Kalén

Field Summary
protected static java.lang.reflect.Method close
           
protected static java.lang.reflect.Method createTemporary
           
protected static java.lang.reflect.Field durationCall
           
protected static java.lang.reflect.Field durationSession
           
protected static java.lang.reflect.Method freeTemporary
           
protected static java.lang.reflect.Method getBufferSize
           
protected static java.lang.reflect.Method getCharacterOutputStream
           
protected static java.lang.reflect.Method getCharacterStream
           
protected static java.lang.reflect.Method isOpen
           
protected  java.lang.Object m_clob
           
protected static java.lang.reflect.Field modeReadOnly
           
protected static java.lang.reflect.Field modeReadWrite
           
protected static java.lang.reflect.Method open
           
protected static java.lang.reflect.Method trim
           
 
Constructor Summary
ClobWrapper()
           
 
Method Summary
 void close()
           
static ClobWrapper createTemporary(java.sql.Connection conn, boolean b, int i)
           
 void freeTemporary()
           
 int getBufferSize()
           
 java.io.Writer getCharacterOutputStream()
           
 java.io.Reader getCharacterStream()
           
 java.lang.Object getClob()
           
static int getDurationCallValue()
           
static int getDurationSessionValue()
           
static int getModeReadOnlyValue()
           
static int getModeReadWriteValue()
           
 boolean isOpen()
           
 void open(int i)
           
 void setClob(java.lang.Object clob)
           
protected static int staticIntFieldValue(java.lang.reflect.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_clob

protected java.lang.Object m_clob

durationSession

protected static java.lang.reflect.Field durationSession

durationCall

protected static java.lang.reflect.Field durationCall

modeReadOnly

protected static java.lang.reflect.Field modeReadOnly

modeReadWrite

protected static java.lang.reflect.Field modeReadWrite

createTemporary

protected static java.lang.reflect.Method createTemporary

freeTemporary

protected static java.lang.reflect.Method freeTemporary

open

protected static java.lang.reflect.Method open

isOpen

protected static java.lang.reflect.Method isOpen

getCharacterStream

protected static java.lang.reflect.Method getCharacterStream

getCharacterOutputStream

protected static java.lang.reflect.Method getCharacterOutputStream

getBufferSize

protected static java.lang.reflect.Method getBufferSize

close

protected static java.lang.reflect.Method close

trim

protected static java.lang.reflect.Method trim
Constructor Detail

ClobWrapper

public ClobWrapper()
Method Detail

getClob

public java.lang.Object getClob()

setClob

public void setClob(java.lang.Object clob)

staticIntFieldValue

protected static int staticIntFieldValue(java.lang.reflect.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 ClobWrapper 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

getCharacterStream

public java.io.Reader getCharacterStream()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getCharacterOutputStream

public java.io.Writer getCharacterOutputStream()
                                        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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14