public static final class JDBCDriverTest.MyClob
extends java.lang.Object
implements java.sql.Clob
A crude Clob implementation for datatype testing.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_contents |
| Constructor and Description |
|---|
MyClob(java.lang.String contents) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.io.InputStream |
getAsciiStream() |
java.io.Reader |
getCharacterStream() |
java.lang.String |
getSubString(long position,
int length) |
long |
length() |
long |
position(java.sql.Clob searchstr,
long start) |
long |
position(java.lang.String searchstr,
long start) |
java.io.OutputStream |
setAsciiStream(long arg0) |
java.io.Writer |
setCharacterStream(long arg0) |
int |
setString(long arg0,
java.lang.String arg1) |
int |
setString(long arg0,
java.lang.String arg1,
int arg2,
int arg3) |
void |
truncate(long arg0) |
public java.io.InputStream getAsciiStream()
getAsciiStream in interface java.sql.Clobpublic java.io.Reader getCharacterStream()
getCharacterStream in interface java.sql.Clobpublic java.lang.String getSubString(long position,
int length)
getSubString in interface java.sql.Clobpublic long length()
length in interface java.sql.Clobpublic long position(java.sql.Clob searchstr,
long start)
position in interface java.sql.Clobpublic long position(java.lang.String searchstr,
long start)
position in interface java.sql.Clobpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int setString(long arg0,
java.lang.String arg1)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long arg0,
java.lang.String arg1,
int arg2,
int arg3)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.OutputStream setAsciiStream(long arg0)
throws java.sql.SQLException
setAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Writer setCharacterStream(long arg0)
throws java.sql.SQLException
setCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic void truncate(long arg0)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.