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

Siebel Java Data Bean: Query first record

Following codes will show you how to query the first record from DB using Java Data Bean. package com ;
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() ;

String acctName = m_busComp.getFieldValue("Name");
System.out.println(acctName);

// log off
m_dataBean.logoff();
}
catch (SiebelException e)
{
System.out.


相关文档:

java和。net之间的互操作

.net网站theserverside.com上,有一篇讲.net和java互操作的文章,收集了net和java互操作性的文章精选
[url]http://www.theserverside.net/tt/articles/showarticle.tss?id=InteropGuide[/url]
In the heterogeneous world of enterprise computing, interoperability is no longer a luxury but a necessity. The multip ......

JAVA规范学习——static成员初始化

class Super { static int taxi = 1729; }
class Sub extends Super {
static { System.out.print("Sub "); }
}
class Test {
public static void main(String[] args) {
System.out.println(Sub.taxi);
}
}
输出:1729
知识要点:
A reference to a class field causes initialization of ......

Java 7决定包含闭包 发布日期推迟至2010年底


在Devoxx 2009(一年一度的Java社区大会,今年在11月16-20日举行)上,Sun宣布将在JDK 7中增加闭包功能。这个功能的添加将从FCM v0.5(First-Class Methods,第一类方法)的语法和语意开始着手。FCM与JCA原本一同被提交,然而Sun宣布JCA将不在JDK 7中考虑。
 
同时,Sun表示Java 7的发布时间将被推迟至2010年底。 ......

JAVA中容易混淆的一些小知识

问题一:我声明了什么!
  String s = "Hello world!";
  许多人都做过这样的事情,但是,我们到底声明了什么?回答通常是:一个String,内容是“Hello world!”。这样模糊的回答通常是概念不清的根源。如果要准确的回答,一半的人大概会回答错误。
  这个语句声明的是一个指向对象的引用,名为“s&r ......

Android G1 JAVA虚拟机

Blog from http://forum.xda-developers.com/showthread.php?t=552846
I've just pushed new Hero Java app into my rogers build and it works fine.
What you basically need is:
Jbed.apk (install with adb install)
libjbedvm.so (adb push /system/lib) - remember to remount as RW.
I strongly suggest to ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号