skip to main content
OpenAccess SDK SQL Engine core methods for Java : Passing data to and from the OpenAccess SDK SQL Engine
 

Passing data to and from the OpenAccess SDK SQL Engine

The OpenAccess SDK SQL engine interface for Java uses objects that are created by the IP and passed into the methods for Java when more than one item or complex data type needs to be returned. For example, if a method has a return value and another integer output value, then the method would look like:
int getData(xo_int iData)
An object of type xo_int would first be instantiated so that the called function, getData in this case, can update its value.
xo_int iData = new xo_int()
int output = getData(iData)
The xo_int class defines the methods setVal and getVal. In cases of strings, the IP code must declare objects of type StringBuffer and pass these into the method so that it can update the value. Dates are handled using the class xo_tm that has members to handle year, month, day and time.