Client.java~14~
上传用户:jnhyscl
上传日期:2010-03-08
资源大小:345k
文件大小:1k
- package web;
- /**
- * <p>Title: </p>
- * <p>Description: </p>
- * <p>Copyright: Copyright (c) 2003</p>
- * <p>Company: </p>
- * @author not attributable
- * @version 1.0
- */
- import com.borland.dx.dataset.*;
- import com.borland.dx.ejb.*;
- public class Client {
- SessionBean sessionBean;
- public Client() {
- jbInit();
- EjbClientDataSet dataSet = sessionBean.getClientDataModule().getPortDataSet();
- dataSet.insertRow(false);
- System.out.println(dataSet.toString());
- dataSet.setString("Portcode", "PORTCODE");
- dataSet.setString("CNAME", "CNAME");
- dataSet.setString("ENAME", "ENAME");
- dataSet.setString("NATIONCODE", "NATIONCODE");
- dataSet.setString("NATIONNAME", "NATIONNAME");
- dataSet.setString("OPERATOR", "OPERATOR");
- dataSet.post();
- sessionBean.addVaoPort("PORTCODE","ENAME");
- }
- public void jbInit(){
- sessionBean = new SessionBean();
- }
- public static void main(String args[]){
- new Client();
- }
- }