org.apache.ojb.broker.platforms
Class ClobWrapper

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

public class ClobWrapper
extends Object

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

Version:
CVS $Id: ClobWrapper.java,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
Author:
Matthew Baird, 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 getBufferSize
           
protected static Method getCharacterOutputStream
           
protected static Method getCharacterStream
           
protected static Method isOpen
           
protected  Object m_clob
           
protected static Field modeReadOnly
           
protected static Field modeReadWrite
           
protected static Method open
           
protected static Method trim
           
 
Constructor Summary
ClobWrapper()
           
 
Method Summary
 void close()
           
static ClobWrapper createTemporary(Connection conn, boolean b, int i)
           
 void freeTemporary()
           
 int getBufferSize()
           
 Writer getCharacterOutputStream()
           
 Reader getCharacterStream()
           
 Object getClob()
           
static int getDurationCallValue()
           
static int getDurationSessionValue()
           
static int getModeReadOnlyValue()
           
static int getModeReadWriteValue()
           
 boolean isOpen()
           
 void open(int i)
           
 void setClob(Object clob)
           
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_clob

protected Object m_clob

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

getCharacterStream

protected static Method getCharacterStream

getCharacterOutputStream

protected static Method getCharacterOutputStream

getBufferSize

protected static Method getBufferSize

close

protected static Method close

trim

protected static Method trim
Constructor Detail

ClobWrapper

public ClobWrapper()
Method Detail

getClob

public Object getClob()

setClob

public void setClob(Object clob)

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 ClobWrapper 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

getCharacterStream

public Reader getCharacterStream()
                          throws SQLException
Throws:
SQLException

getCharacterOutputStream

public Writer getCharacterOutputStream()
                                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 © 2004-2012 The Kuali Foundation. All Rights Reserved.