Instances of Java classes lifespan in Oracle [message #329716] |
Thu, 26 June 2008 05:37 |
|
didiera
Messages: 134 Registered: August 2007 Location: Mauritius
|
Senior Member |
|
|
Hello everyone,
I wanted to know if, once a Java class created in oracle, it were possible for me to create instances of it in oracle itself and manipulate its attributes via its own methods. From what I understood of Java integration with Oracle (until now), one can create classes with methods that interact with oracle counterparts a bit like RPC - Java methods being the skeleton and Oracle procedures and functions acting like the stubs...but that does not provide me with full OOP power since my 'instances' exist only for the time of a call on a method.
With this configuration, my java classes do not exist throughout different procedure calls and no persistance is made possible.
I would appreciate if someone could shed more light on this
regards,
Didier
|
|
|
Re: Instances of Java classes lifespan in Oracle [message #329772 is a reply to message #329716] |
Thu, 26 June 2008 08:16 |
ehegagoka
Messages: 493 Registered: July 2005
|
Senior Member |
|
|
Hi,
Someone correct me on this if I am wrong. As I know, Yes, you can't do Object Persistence in calling your java class/objects from pl/sql. It's kind of limited to calling only (class) static methods from pl/sql, which somehow defeats the idea of OOP. I've also encountered this before as there are java classes that I need but require object persistence to achieve it's "true use", and I can't seem to find an article to somehow create a counterpart/holder of that java object in pl/sql to handle it. Maybe on the newer versions of Oracle this is now possible. Hope I've explained it clearly. (sorry for my english)
Regards,
Rhani
|
|
|
|
|
|
|