WebLogic Platform 8.1数据库控件

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

WebLogic Platform 8.1数据库控件是系统预生成控件中的一种,本文的代码来自

WebLogic Platform 8.1文档.例子和说明如下:

//文件名称为ItemsDatabase .jcx java control extension的意思

package verifyFunds;

import com.bea.control.*;

import java.sql.SQLException;

/**

* A Database control to support the VerifyFunds sample control. Provides

access

* to a database for purchase order requests.

* 下面的javadoc定义数据源的JNDI名称

* @jc:connection data-source-jndi-name="cgSampleDataSource"

*/

public interface ItemsDatabase

extends DatabaseControl, com.bea.control.ControlExtension

//是数据库控件,并是对com.bea.control.ControlExtension的扩展

{

/**

* Select item price based on item number.

* javadoc表明该方法要执行的SQL,{itemNumber}将用int itemNumber的值代替

* @jc:sql statement="SELECT price FROM items WHERE itemnumber =

{itemNumber}"

*/

double selectItemPrice(int itemNumber);

}

WebLogic Platform 8.1 workshop提供了非常友好的界面,让我们直接编辑SQL和方法

名称/说明.WebLogic Platform 8.1数据库控件开发方式是我们梦寐以求的开发方式,

非常不错!

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航