org.axiondb.types
Class StringClob
java.lang.Object
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.6 $ $Date: 2004/04/29 21:05:43 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringClob
public StringClob(String str)
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