Skip to Main Content

Java Database Connectivity (JDBC)

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!

CREATE OR REPLACE JAVA SOURCE for SQLJ file???

714055Aug 10 2009 — edited Nov 20 2014
Hi all,

I have got a question. Is it possible to perform CREATE OR REPLACE JAVA SOURCE for a SQLJ file (source). It means I am trying to create Java source from source text where source text is not source of a regular Java class but of a SQLJ class.

CREATE OR REPLACE JAVA SOURCE NAMED "TestClass" AS
public class TestClass {
static public String Msg(String tail) {
return "Hello " + tail;

}
}
/

So, where Java class source goes there must be body of SQLJ class. Meanwhile, I have to avoid import with loadjava and implement Java import per SQL script.

Edited by: doytsujin on Aug 10, 2009 8:18 AM

I probably should load Java sources generated from SQLJ source by SQLJ per-compiler. This should work.

Edited by: doytsujin on Aug 10, 2009 8:38 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2009
Added on Aug 10 2009
1 comment
2,816 views