public class ClobImpl extends Object implements Clob
It is useful for setting CLOB values in the database.
Note: This implementation does not attempt to implement features of JDBC3 or JDBC4.
| Constructor and Description |
|---|
ClobImpl(Reader reader,
long length)
Construct an ClobImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Not implemented.
|
InputStream |
getAsciiStream() |
Reader |
getCharacterStream() |
Reader |
getCharacterStream(long pos,
long length)
Not implemented.
|
String |
getSubString(long pos,
int length) |
long |
length() |
long |
position(Clob searchstr,
long start)
Not implemented, I guess it is not needed for writing CLOB.
|
long |
position(String searchstr,
long start)
Not implemented, I guess it is not needed for writing CLOB.
|
OutputStream |
setAsciiStream(long pos)
Not implemented.
|
Writer |
setCharacterStream(long pos)
Not implemented.
|
int |
setString(long pos,
String str)
Not implemented.
|
int |
setString(long pos,
String str,
int offset,
int len)
Not implemented.
|
void |
truncate(long len)
Not implemented.
|
public ClobImpl(Reader reader, long length)
public InputStream getAsciiStream()
getAsciiStream in interface Clobpublic Reader getCharacterStream()
getCharacterStream in interface Clobpublic String getSubString(long pos, int length) throws SQLException
getSubString in interface ClobSQLExceptionpublic long position(Clob searchstr, long start)
public long position(String searchstr, long start)
public OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream in interface ClobSQLExceptionpublic Writer setCharacterStream(long pos) throws SQLException
setCharacterStream 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 void truncate(long len)
throws SQLException
truncate in interface ClobSQLExceptionpublic Reader getCharacterStream(long pos, long length)
getCharacterStream in interface ClobCopyright © 2014. All rights reserved.