|
||||||||
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.
Constructor Summary | |
---|---|
ClobImpl(java.io.Reader reader,
long length)
Examples: new ClobImpl(new StringReader(str), str.length()) new ClobImpl(new FileReader(file), file.length()) |
Method Summary | |
---|---|
java.io.InputStream |
getAsciiStream()
|
java.io.Reader |
getCharacterStream()
|
java.lang.String |
getSubString(long pos,
int length)
|
long |
length()
|
long |
position(java.sql.Clob searchstr,
long start)
Not implemented, I guess it is not needed for writing CLOB |
long |
position(java.lang.String 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClobImpl(java.io.Reader reader, long length)
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |