org.axiondb.types
Class StringClob
java.lang.Object
org.axiondb.types.StringClob
- All Implemented Interfaces:
- java.sql.Clob, AxionClob
public class StringClob
- extends java.lang.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(java.lang.String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringClob
public StringClob(java.lang.String str)
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
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
- 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
getString
public java.lang.String getString()
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
free
public void free()
throws java.sql.SQLException
- Specified by:
free
in interface java.sql.Clob
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream(long arg0,
long arg1)
throws java.sql.SQLException
- Specified by:
getCharacterStream
in interface java.sql.Clob
- Throws:
java.sql.SQLException