|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.jdo.engine.ClobImpl
public class ClobImpl
This is an implementation of java.sql.Clob interface that is constructed from java.io.Reader, in needs information about the length of the stream (which is not provided by java.io.Reader interface).
It is useful for setting CLOB values in the database.
Note: This implementation does not attempt to implement features of JDBC3 or JDBC4.
| Constructor Summary | |
|---|---|
ClobImpl(Reader reader,
long length)
Construct an ClobImpl instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClobImpl(Reader reader,
long length)
| Method Detail |
|---|
public InputStream getAsciiStream()
getAsciiStream in interface Clobpublic Reader getCharacterStream()
getCharacterStream in interface Clobpublic long length()
length in interface Clob
public String getSubString(long pos,
int length)
throws SQLException
getSubString in interface ClobSQLException
public long position(Clob searchstr,
long start)
position in interface Clob
public long position(String searchstr,
long start)
position in interface Clob
public OutputStream setAsciiStream(long pos)
throws SQLException
setAsciiStream in interface ClobSQLException
public Writer setCharacterStream(long pos)
throws SQLException
setCharacterStream in interface ClobSQLException
public int setString(long pos,
String str)
throws SQLException
setString in interface ClobSQLException
public int setString(long pos,
String str,
int offset,
int len)
throws SQLException
setString in interface ClobSQLException
public void truncate(long len)
throws SQLException
truncate in interface ClobSQLException
public Reader getCharacterStream(long pos,
long length)
public void free()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||