GetActualClass
Description
Returns the class of the Java object that a PowerBuilder proxy
object represents.
Syntax
|
1 |
javavm.GetActualClass(powerobject proxyobject) |
|
Argument |
Description |
|---|---|
|
javavm |
An instance of the JavaVM class |
|
proxyobject |
An instantiated PowerBuilder proxy |
Return value
String
Usage
If an EJB method is defined to return a Java class that is not the
actual object returned at runtime, but is instead a class that the
actual object’s class extends or implements, you can use
GetActualClass to return the class of the actual object returned. You
can then use the DynamicCast method to cast the proxy returned from the
method to a proxy for the actual class of the object.
For more information and an example, see the description of the
DynamicCast method.
See also