org.axiondb.types
Class StringClob

java.lang.Object
  extended by org.axiondb.types.StringClob
All Implemented Interfaces:
Clob, AxionClob

public class StringClob
extends Object
implements AxionClob

A Clob based upon a simple String. This type allows any string value to be treated as a AxionClob.

Version:
$Revision: 1.7 $ $Date: 2007/11/13 19:04:02 $

Constructor Summary
StringClob(String str)
           
 
Method Summary
 void free()
           
 InputStream getAsciiStream()
           
 Reader getCharacterStream()
           
 Reader getCharacterStream(long arg0, long arg1)
           
 String getString()
           
 String getSubString(long pos, int len)
           
 long length()
           
 long position(Clob searchstr, long start)
           
 long position(String searchstr, long start)
           
 OutputStream setAsciiStream(long pos)
           
 Writer setCharacterStream(long pos)
           
 int setString(long pos, String str)
           
 int setString(long pos, String str, int offset, int length)
           
 void truncate(long length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringClob

public StringClob(String str)
Method Detail

getAsciiStream

public InputStream getAsciiStream()
                           throws SQLException
Specified by:
getAsciiStream in interface Clob
Specified by:
getAsciiStream in interface AxionClob
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream()
                          throws SQLException
Specified by:
getCharacterStream in interface Clob
Specified by:
getCharacterStream in interface AxionClob
Throws:
SQLException

getSubString

public String getSubString(long pos,
                           int len)
                    throws SQLException
Specified by:
getSubString in interface Clob
Specified by:
getSubString in interface AxionClob
Throws:
SQLException

length

public long length()
            throws SQLException
Specified by:
length in interface Clob
Specified by:
length in interface AxionClob
Throws:
SQLException

position

public long position(Clob searchstr,
                     long start)
              throws SQLException
Specified by:
position in interface Clob
Specified by:
position in interface AxionClob
Throws:
SQLException

position

public long position(String searchstr,
                     long start)
              throws SQLException
Specified by:
position in interface Clob
Specified by:
position in interface AxionClob
Throws:
SQLException

setAsciiStream

public OutputStream setAsciiStream(long pos)
                            throws SQLException
Specified by:
setAsciiStream in interface Clob
Specified by:
setAsciiStream in interface AxionClob
Throws:
SQLException

setCharacterStream

public Writer setCharacterStream(long pos)
                          throws SQLException
Specified by:
setCharacterStream in interface Clob
Specified by:
setCharacterStream in interface AxionClob
Throws:
SQLException

setString

public int setString(long pos,
                     String str)
              throws SQLException
Specified by:
setString in interface Clob
Specified by:
setString in interface AxionClob
Throws:
SQLException

setString

public int setString(long pos,
                     String str,
                     int offset,
                     int length)
              throws SQLException
Specified by:
setString in interface Clob
Specified by:
setString in interface AxionClob
Throws:
SQLException

getString

public String getString()

truncate

public void truncate(long length)
              throws SQLException
Specified by:
truncate in interface Clob
Specified by:
truncate in interface AxionClob
Throws:
SQLException

free

public void free()
          throws SQLException
Specified by:
free in interface Clob
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream(long arg0,
                                 long arg1)
                          throws SQLException
Specified by:
getCharacterStream in interface Clob
Throws:
SQLException