aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CLOB field....