Kbase P129134: How to use INT64 as input parameter from the Java OpenClient
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  21/02/2008 |
|
Status: Unverified
GOAL:
How to use INT64 as input parameter from the Java OpenClient
FACT(s) (Environment):
OpenEdge 10.1x
FIX:
In the OpenEdge Java Open Client API long is mapped to INT64:
Example code:
import com.progress.open4gl.javaproxy.OpenAppObject;
import com.progress.open4gl.javaproxy.ParamArray;
import com.progress.open4gl.javaproxy.ParamArrayMode;
public class TestInt64 {
public static void main(String[] args) throws Throwable {
long foo = 1234567L;
Long objl = new Long(foo);
com.progress.open4gl.ProDataGraphMetaData pml = null;
OpenAppObject appObj = new OpenAppObject("AppServer://localhost/asbroker1", "" , "", "", "");
ParamArray params = new ParamArray(1);
params.addParameter (0, objl ,ParamArrayMode.INPUT, com.progress.open4gl.Parameter.PRO_INT64 ,0, pml);
appObj.runProc("appsrv_code.p", params);
}
}