易截截图软件、单文件、免安装、纯绿色、仅160KB

Siebel Java Data Bean: Query muti record

Following code is used for retrive all the record of Business Component from DataBase. package com.muti.records ;
import com.siebel.data.*;
import com.siebel.data.SiebelException;
public class DataBeanDemo {
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject = null;
private SiebelBusComp m_busComp = null;
public static void main(String[] args)
{
DataBeanDemo demo = new DataBeanDemo();
}
public DataBeanDemo()
{
try
{
// instantiate the Siebel Data Bean
m_dataBean = new SiebelDataBean();
// log in to the server

//the name or IP address of your Siebel Server
String SiebelServerhost = "192.168.1.120" ;

//listening port number for the SCBroker component (default 2321)
String SCBPort = "2321" ;

String enterpriseServer = "SBA_81" ;
String AppObjMgr_enu = "EAIObjMgr_enu" ;

m_dataBean.login("Siebel://"+SiebelServerhost+":"+SCBPort+"/"+enterpriseServer+"/"+AppObjMgr_enu, "SADMIN", "SADMIN", "enu");
// get the business object
m_busObject = m_dataBean.getBusObject("Account");
// get the business component
m_busComp = m_busObject.getBusComp("Account");

m_busComp.clearToQuery() ;
m_busComp.setSearchExpr("[Name] like '*'");
m_busComp.executeQuery(true) ;

m_busComp.firstRecord() ;
System.out.println(m_busComp.getFieldValue("Name"));

while(m_busComp.nextRecord())
{
String acctName = m_busComp.getFieldValue("Name");
System.out.printl


相关文档:

java命名规范_编程惯例和代码范例

1.       编程惯例(Programming Practices)
9.1  提供对实例以及类变量的访问控制(Providing Access to Instance and Class Variables)
若没有足够理由,不要把实例或类变量声明为公有。通常,实例变量无需显式的设置(set)和获取(gotten),通常这作为方法调用的边缘效应 (side effect ......

java collection接口


1、Collection 和 Collections的区别。
Collections是个java.util下的类,它包含有各种有关java集合操作的静态方法。 
Collection是个java.util下的接口,它是各种java集合结构的父接口
2、List, Set, Map是否继承自Collection接口? List,Set是 Map不是
3、ArrayList和Vector的区别。
(1).同步性:Vector是线程 ......

Java代码检测工具PMD规则集翻译


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:Verdana;
panose ......

java 运算符

  在算术运算符部分,需要特别注意的一个语法现象是“晋升”。晋升指低于int的3种数字类型(byte、short和char)进行算术运算后,结果会自动提升成int类型。示例代码如下:
                   byte b1 = 10;
& ......

JAVA类实现序列化的方法是?

Java中通过implements Serializable来实现对象的序列化。其实Serializable接口中并没有需要实现的方法,注明某个类implements Serializable只是为了标识或表明这个类可以被序列化。
       那么什么是序列化呢,序列化又有什么作用呢?
       一个类,或 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号