java.sql.Clob
public class ClobImpl
extends java.lang.Object
implements java.sql.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 | Description |
---|---|
ClobImpl(java.io.Reader reader,
long length) |
Construct an ClobImpl instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
free() |
Not implemented.
|
java.io.InputStream |
getAsciiStream() |
|
java.io.Reader |
getCharacterStream() |
|
java.io.Reader |
getCharacterStream(long pos,
long length) |
Not implemented.
|
java.lang.String |
getSubString(long pos,
int length) |
|
long |
length() |
|
long |
position(java.lang.String searchstr,
long start) |
Not implemented, I guess it is not needed for writing CLOB.
|
long |
position(java.sql.Clob searchstr,
long start) |
Not implemented, I guess it is not needed for writing CLOB.
|
java.io.OutputStream |
setAsciiStream(long pos) |
Not implemented.
|
java.io.Writer |
setCharacterStream(long pos) |
Not implemented.
|
int |
setString(long pos,
java.lang.String str) |
Not implemented.
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len) |
Not implemented.
|
void |
truncate(long len) |
Not implemented.
|
public ClobImpl(java.io.Reader reader, long length)
public java.io.InputStream getAsciiStream()
getAsciiStream
in interface java.sql.Clob
public java.io.Reader getCharacterStream()
getCharacterStream
in interface java.sql.Clob
public long length()
length
in interface java.sql.Clob
public java.lang.String getSubString(long pos, int length) throws java.sql.SQLException
getSubString
in interface java.sql.Clob
java.sql.SQLException
public long position(java.sql.Clob searchstr, long start)
position
in interface java.sql.Clob
public long position(java.lang.String searchstr, long start)
position
in interface java.sql.Clob
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException
setAsciiStream
in interface java.sql.Clob
java.sql.SQLException
public java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException
setCharacterStream
in interface java.sql.Clob
java.sql.SQLException
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
public int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Clob
java.sql.SQLException
public java.io.Reader getCharacterStream(long pos, long length)
getCharacterStream
in interface java.sql.Clob
public void free()
free
in interface java.sql.Clob
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com