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 TypeMethodDescriptionvoid
free()
Not implemented.getCharacterStream
(long pos, long length) Not implemented.getSubString
(long pos, int length) long
length()
long
Not implemented, I guess it is not needed for writing CLOB.long
Not implemented, I guess it is not needed for writing CLOB.setAsciiStream
(long pos) Not implemented.setCharacterStream
(long pos) Not implemented.int
Not implemented.int
Not implemented.void
truncate
(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:
getAsciiStream
in interfaceClob
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceClob
-
length
public long length() -
getSubString
- Specified by:
getSubString
in 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:
setAsciiStream
in interfaceClob
- Throws:
SQLException
-
setCharacterStream
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setCharacterStream
in interfaceClob
- Throws:
SQLException
-
setString
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setString
in interfaceClob
- Throws:
SQLException
-
setString
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
setString
in interfaceClob
- Throws:
SQLException
-
truncate
Not implemented. Added to make ClobImpl compliant with JDBC 3.0, which is a part of JDK1.4.- Specified by:
truncate
in interfaceClob
- Throws:
SQLException
-
getCharacterStream
Not implemented. Added to make ClobImpl compliant with JDBC 4.0, which is a part of JDK6.- Specified by:
getCharacterStream
in interfaceClob
-
free
public void free()Not implemented. Added to make ClobImpl compliant with JDBC 4.0, which is a part of JDK6.
-