Oracle BC4J Object Conversion

Posted on 2004-11-03
Last Modified: 2008-02-01
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

Novice Programmer.
Question by:FearFactor_x
    1 Comment
    LVL 13

    Accepted Solution

    try this:

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

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now