org.exolab.castor.jdo.engine
Class ClobImpl
java.lang.Object
org.exolab.castor.jdo.engine.ClobImpl
- Clob
public class ClobImpl
extends java.lang.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.
Note: This implementation does not attempt to implement features of JDBC3
or JDBC4.
ClobImpl(Reader reader, long length) - Construct an ClobImpl instance.
|
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.
|
ClobImpl
public ClobImpl(Reader reader,
long length)
Construct an ClobImpl instance.
Examples:
new ClobImpl(new StringReader(str), str.length())
new ClobImpl(new FileReader(file), file.length())
free
public void free()
Not implemented. Added to make ClobImpl compliant with
JDBC 4.0, which is a part of JDK6.
getAsciiStream
public InputStream getAsciiStream()
getCharacterStream
public Reader getCharacterStream()
getCharacterStream
public Reader getCharacterStream(long pos,
long length)
Not implemented. Added to make ClobImpl compliant with
JDBC 4.0, which is a part of JDK6.
getSubString
public String getSubString(long pos,
int length)
throws SQLException
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)
throws SQLException
Not implemented. Added to make ClobImpl compliant with
JDBC 3.0, which is a part of JDK1.4.
setCharacterStream
public Writer setCharacterStream(long pos)
throws SQLException
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is
a part of JDK1.4.
setString
public int setString(long pos,
String str)
throws SQLException
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is
a part of JDK1.4.
setString
public int setString(long pos,
String str,
int offset,
int len)
throws SQLException
Not implemented. Added to make ClobImpl compliant with
JDBC 3.0, which is a part of JDK1.4.
truncate
public void truncate(long len)
throws SQLException
Not implemented. Added to make ClobImpl compliant with
JDBC 3.0, which is a part of JDK1.4.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com