JBO VB Runtime
JBO VB Client
JBO Runtime
Your business components
common library
BC4J_VBBIND_Test
and click OK.
package mypackage;
import oracle.jbo.*;
import oracle.jbo.client.Configuration;
public class BC4J_VBBIND_TEST
{
public BC4J_VBBIND_Test()
{
}
public static void main(String arg[]) {
String _am = "mypackage.MypackageModule"; //App Module name
String _cf = "MypackageModule"; // VisiBroker Bind Mode Config name specified in Step 7 above.
String voMemberName = "DeptView"; // Name of the View Object
ApplicationModule myam =
(ApplicationModule)Configuration.createRootApplicationModule(_am,_cf);
// Find the viewobject included in the appmodule
ViewObject vo = myam.findViewObject(voMemberName);
// Iterate over the viewobject to get the rows
Row r = vo.first();
while (r != null)
{
// Iterate over the current row and get
// all the attributes
for (int i = 0; i < vo.getAttributeCount(); i++)
{
String attrName = vo.getAttributeDef(i).getName();
String attrVal = r.getAttribute(i).toString();
System.out.println(attrName + " = " + attrVal);
}
r = vo.next();
}
}
}
Related Topics
Deploying CORBA Objects on VisiBroker