Package org.exolab.castor.jdo.engine
Class ClobImpl
java.lang.Object
org.exolab.castor.jdo.engine.ClobImpl
- All Implemented Interfaces:
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.
- Version:
- $Revision: 7121 $
- Author:
- Oleg Nitz, Adam Esterline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()Not implemented.getCharacterStream(long pos, long length) Not implemented.getSubString(long pos, int length) longlength()longNot implemented, I guess it is not needed for writing CLOB.longNot implemented, I guess it is not needed for writing CLOB.setAsciiStream(long pos) Not implemented.setCharacterStream(long pos) Not implemented.intNot implemented.intNot implemented.voidtruncate(long len) Not implemented.
-
Constructor Details
-
ClobImpl
Construct an ClobImpl instance.
Examples:
new ClobImpl(new StringReader(str), str.length())
new ClobImpl(new FileReader(file), file.length())
-
-
Method Details
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceClob
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob
-
length
public long length() -
getSubString
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
position
Not implemented, I guess it is not needed for writing CLOB. -
position
Not implemented, I guess it is not needed for writing CLOB. -
setAsciiStream
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
setCharacterStream
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
setString
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setString
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
truncate
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
truncatein interfaceClob- Throws:
SQLException
-
getCharacterStream
Not implemented. Added to make ClobImpl compliant with JDBC 4.0, which is a part of JDK6.- Specified by:
getCharacterStreamin interfaceClob
-
free
public void free()Not implemented. Added to make ClobImpl compliant with JDBC 4.0, which is a part of JDK6.
-