org.axiondb.jdbc
Class AbstractAxionClob

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

public abstract class AbstractAxionClob
extends java.lang.Object
implements AxionClob

Abstract base implementation of AxionClob.

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

Constructor Summary
AbstractAxionClob()
           
 
Method Summary
 java.io.InputStream getAsciiStream()
           
 java.io.Reader getCharacterStream()
           
 java.lang.String getSubString(long pos, int len)
           
 long length()
           
 long position(java.sql.Clob searchstr, long start)
           
 long position(java.lang.String searchstr, long start)
           
 java.io.OutputStream setAsciiStream(long pos)
           
 java.io.Writer setCharacterStream(long pos)
           
 int setString(long pos, java.lang.String str)
          Invokes setString(pos,str,0,str.length())
 int setString(long pos, java.lang.String str, int offset, int length)
           
abstract  java.io.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 java.io.InputStream getAsciiStream()
                                   throws java.sql.SQLException
Specified by:
getAsciiStream in interface java.sql.Clob
Specified by:
getAsciiStream in interface AxionClob
Throws:
java.sql.SQLException

getCharacterStream

public java.io.Reader getCharacterStream()
                                  throws java.sql.SQLException
Specified by:
getCharacterStream in interface java.sql.Clob
Specified by:
getCharacterStream in interface AxionClob
Throws:
java.sql.SQLException

getSubString

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

length

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

position

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

position

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

setAsciiStream

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

setUtf8Stream

public abstract java.io.OutputStream setUtf8Stream(long pos)
                                            throws java.sql.SQLException
Throws:
java.sql.SQLException
See Also:
setCharacterStream(long)

setCharacterStream

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

setString

public int setString(long pos,
                     java.lang.String str)
              throws java.sql.SQLException
Invokes setString(pos,str,0,str.length())

Specified by:
setString in interface java.sql.Clob
Specified by:
setString in interface AxionClob
Throws:
java.sql.SQLException

setString

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

truncate

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