org.exolab.castor.jdo.engine

Class ClobImpl

public class ClobImpl extends Object implements Clob

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.

Version: $Revision: 1.1.1.1 $

Author: Oleg Nitz

Constructor Summary
ClobImpl(Reader reader, long length)
Examples:
new ClobImpl(new StringReader(str), str.length())
new ClobImpl(new FileReader(file), file.length())
Method Summary
InputStreamgetAsciiStream()
ReadergetCharacterStream()
StringgetSubString(long pos, int length)
longlength()
longposition(Clob searchstr, long start)
Not implemented, I guess it is not needed for writing CLOB
longposition(String searchstr, long start)
Not implemented, I guess it is not needed for writing CLOB
OutputStreamsetAsciiStream(long pos)
Not implemented.
WritersetCharacterStream(long pos)
Not implemented.
intsetString(long pos, String str)
Not implemented.
intsetString(long pos, String str, int offset, int len)
Not implemented.
voidtruncate(long len)
Not implemented.

Constructor Detail

ClobImpl

public ClobImpl(Reader reader, long length)
Examples:
new ClobImpl(new StringReader(str), str.length())
new ClobImpl(new FileReader(file), file.length())

Method Detail

getAsciiStream

public InputStream getAsciiStream()

getCharacterStream

public Reader getCharacterStream()

getSubString

public String getSubString(long pos, int length)

length

public long length()

position

public long position(Clob searchstr, long start)
Not implemented, I guess it is not needed for writing CLOB

position

public long position(String searchstr, long start)
Not implemented, I guess it is not needed for writing CLOB

setAsciiStream

public OutputStream setAsciiStream(long pos)
Not implemented. Added to make ClobImpl complient with JDBC 3.0, which is apart of JDK1.4

Author: Adam Esterline

setCharacterStream

public Writer setCharacterStream(long pos)
Not implemented. Added to make ClobImpl complient with JDBC 3.0, which is apart of JDK1.4

Author: Adam Esterline

setString

public int setString(long pos, String str)
Not implemented. Added to make ClobImpl complient with JDBC 3.0, which is apart of JDK1.4

Author: Adam Esterline

setString

public int setString(long pos, String str, int offset, int len)
Not implemented. Added to make ClobImpl complient with JDBC 3.0, which is apart of JDK1.4

Author: Adam Esterline

truncate

public void truncate(long len)
Not implemented. Added to make ClobImpl complient with JDBC 3.0, which is apart of JDK1.4

Author: Adam Esterline

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com