| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object obj) |
void |
free() |
InputStream |
getAsciiStream() |
Reader |
getCharacterStream() |
Reader |
getCharacterStream(long pos,
long length) |
String |
getSubString(long pos,
int length) |
int |
hashCode() |
long |
length() |
long |
position(Clob searchClob,
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 len) |
String |
toString() |
void |
truncate(long len) |
boolean |
wasFreeCalled()
Returns if
free() has been called. |
public MockClob(String data)
public long length()
throws SQLException
length in interface ClobSQLExceptionpublic void truncate(long len)
throws SQLException
truncate in interface ClobSQLExceptionpublic InputStream getAsciiStream() throws SQLException
getAsciiStream in interface ClobSQLExceptionpublic OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream in interface ClobSQLExceptionpublic Reader getCharacterStream() throws SQLException
getCharacterStream in interface ClobSQLExceptionpublic Reader getCharacterStream(long pos, long length) throws SQLException
getCharacterStream in interface ClobSQLExceptionpublic Writer setCharacterStream(long pos) throws SQLException
setCharacterStream in interface ClobSQLExceptionpublic String getSubString(long pos, int length) throws SQLException
getSubString in interface ClobSQLExceptionpublic int setString(long pos,
String str)
throws SQLException
setString in interface ClobSQLExceptionpublic int setString(long pos,
String str,
int offset,
int len)
throws SQLException
setString in interface ClobSQLExceptionpublic long position(String searchstr, long start) throws SQLException
position in interface ClobSQLExceptionpublic long position(Clob searchClob, long start) throws SQLException
position in interface ClobSQLExceptionpublic void free()
throws SQLException
free in interface ClobSQLExceptionpublic boolean wasFreeCalled()
free() has been called.true if free() has been called,
false otherwiseCopyright © 2003-2014. All Rights Reserved.