Retrieves the float return value of the last call of JavaCallMethod on the specified object or class.
Java.bdh
JavaGetFloat( in hObject: number ): float;
Returns the result of the last call of JavaCallMethod.
Parameter | Description |
---|---|
hObject | Valid handle to a java object or JAVA_STATIC_METHOD. |
var hTestObj : number; dcltrans transaction TInit begin // Load and start the JVM. JavaCreateJavaVM(); // instantiate the java class hTestObj := JavaLoadObject("Test"); end TInit; transaction TMyJavaTrans var fValue : float; begin ThinkTime(0.2); // set the first parameter JavaSetString(hTestObj, "1"); // set the second parameter JavaSetNumber(hTestObj, 1, JAVA_BYTE); // invoke the method JavaCallMethod(hTestObj, "doFoo"); // retrieve the result fValue := JavaGetFloat(hTestObj); Print("doFoo returned "+String(fValue)); end TMyJavaTrans; transaction TEnd begin JavaFreeObject(hTestObj); end TEnd;
JavaFrameworkBankSample.bdf
BankSample.java, Account.java, Customer.java, PremiumCustomer.java