Home » Developer & Programmer » JDeveloper, Java & XML » Usage of Oracle Objects in Java
Usage of Oracle Objects in Java [message #366730] Wed, 15 November 2000 04:09
sateesh
Messages: 8
Registered: April 2000
Junior Member
Hi,
I have created an Oracle Object which has some data members as VARRAYs . Inside my Java program , I am retrieving data from the table and assigning the values to the local variables. For ex..

Suppose my Object(Oracle) name is Person which is a column Object in the Table Tab1 and has a data member Accounts which is a VARRAY of VARCHAR2(100)

Now in my Java program
ResluSet rs=staement.executeQuery("select Person.Accounts as obj from Tab1");
Now can I declare like this-->

String tempaccounts[[]];
tempaccounts = rs.getObject("obj");

The above line will give an error saying that you have to type cast,

So , How to type cast that one.....

Thanks in advance
Previous Topic: JAVA + html + write to file
Next Topic: Can I access Oracle Express cubes from Java?
Goto Forum:
  


Current Time: Sat Jul 31 16:32:26 CDT 2021