Frees a java object. Must be called on all objects instantiated with JavaLoadObject or retrieved with JavaGetObject.
Java.bdh
JavaFreeObject( in hObject: number ): boolean;
true if the object could be released
false otherwise
Parameter | Description |
---|---|
hObject | Valid handle to a java object. |
var hTestObj : number; dcltrans transaction TInit begin // Load and start the JVM. JavaCreateJavaVM(); // instantiate the java class hTestObj := JavaLoadObject("Test"); end TInit; transaction THello begin JavaCallMethod(hTestObj, "doHello"); end THello; transaction TEnd begin JavaFreeObject(hTestObj); end TEnd;
JavaFrameworkBankSample.bdf
BankSample.java, Account.java, Customer.java, PremiumCustomer.java