This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

issue in converting string to CLOB

 
anish jain
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody let me know the java code to convert the string to CLOB object using oracle 9i classes12.jar ???

I have written the code for the same which runs fine if i use oracle 10g classes12.jar but it fails when i use oracle 9i classes12.jar

It's very urgent

Any help will be highly appreciated
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using the old driver? Are you stuck using JDK 1.2 or something?
 
anish jain
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:Why are you using the old driver? Are you stuck using JDK 1.2 or something?


actually i need to deploy my code and classes12.jar of oracle 9i is being used in the jboss server.

so my code should work with oracle 9i classes12.jar which actually is not happening right now.

Please help me in writing the code which convert a String object to CLOB using oracle 9i classes12.jar
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why classes12.jar though? That is an Oracle driver for JDK 1.2. The reason I ask is that this particular driver didn't have great support for binary data types, whereas the current version do.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean inserting a String into a CLOB field in the DB ?? or what do you mean ??

If that is the case, then just use the JDBC setString method on the CLOB.
 
manvendra singh
Greenhorn
Posts: 3
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't matter whether its a clob or varchar in database...
You can consider it as String in your java code.........
(provided you are not using updatable resultset)


happy Coding
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic