org.axiondb.jdbc
Class AbstractAxionClob

java.lang.Object
  extended by org.axiondb.jdbc.AbstractAxionClob
All Implemented Interfaces:
Clob, AxionClob
Direct Known Subclasses:
ClobSource

public abstract class AbstractAxionClob
extends Object
implements AxionClob

Abstract base implementation of AxionClob.

Version:
$Revision: 1.7 $ $Date: 2003/07/10 16:34:34 $

Constructor Summary
AbstractAxionClob()
           
 
Method Summary
 InputStream getAsciiStream()
           
 Reader getCharacterStream()
           
 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)
          Invokes setString(pos,str,0,str.length())
 int setString(long pos, String str, int offset, int length)
           
abstract  OutputStream setUtf8Stream(long pos)
           
 void truncate(long length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Clob
free, getCharacterStream
 

Constructor Detail

AbstractAxionClob

public AbstractAxionClob()
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

setUtf8Stream

public abstract OutputStream setUtf8Stream(long pos)
                                    throws SQLException
Throws:
SQLException
See Also:
setCharacterStream(long)

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
Invokes setString(pos,str,0,str.length())

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

truncate

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