Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

Oracle BC4J Object Conversion

hi Experts,

               I hope  Experts can help me in finding how to achieve the following.. This issue deals with
Oracle's BC4J Objects...

               I have an instance of the Class oracle.jbo.domain.ClobDomain

               I need to convert it into an instance of class oracle.sql.CLOB


Thanx..
Novice Programmer.
0
FearFactor_x
Asked:
FearFactor_x
1 Solution
 
petmagdyCommented:
try this:

       Clob         c_lob;
       ClobDomain clbDom = new  ClobDomain();
       char[] charData = clbDom.toCharArray();
       
       CLOB theCLOB = ClobDomain.createEmptyCLOB( context);
       
       theCLOB.putChars(charData.length, charData);
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now