Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use Oracle objects in java code

LinoPistoMay 16 2011 — edited May 23 2011
Hi all!


I'm reading an xls and i need to fill me oracle objects with java code:

OBJECT_NAME OBJECT_TYPE
----------------- -------------------
LETTURA_OBJ TYPE
LETTURA_OBJ TYPE BODY

In the past weeks i've been using both java code into oracle and oracle objects, but new i need to write those objects with data i read with java, anybody can help me?
I know that the easiest work around would be to put the data i read from the excel file into a table and then fill the oracle objects, but now i want to learn how to write directly those objects with a command like the following one:

a sample of the code i'm tryng to write:

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
import java.io.*;
import java.io.IOException;
import jxl.*;
...
....
public cass ....
...
#sql{ variabili_globali.var_ER_F3.Tipo_Lettura := 5}
....


thanks,
Massimo

Edited by: LinoPisto on 16-mag-2011 16.38
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2011
Added on May 16 2011
5 comments
372 views