wood burning stoves 2.0*
The moose likes JDBC and the fly likes CLOB field.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "CLOB field...." Watch "CLOB field...." New topic
Author

CLOB field....

Vimala Shirur
Greenhorn

Joined: Jan 12, 2001
Posts: 12
I want to store and retrieve a java object into/from a CLOB field. It looks like setClob(int, clob) method requires a clob object. Also, when i retrive the clob [getClob()] from the database i need to get back as a java object. How do we do this? I know we can store it as a stream into the clob field but how do we get back as an object.

Thanks and appreciate your help!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

getClob() returns you an object. It is a database specific implementation of the clob interface.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CLOB field....
 
Similar Threads
Reading data in a CLOB from BIRT report
Store char[] as column type
How to convert "java.sql.Blob" object to "java.sql.Clob" object?
Displaying Clob Data in BIRT report
Read Serialized Object stored as CLOB