WebLogic Platform 8.1 Database Control

xiaoxiao2021-03-06  85

WebLogic Platform 8.1 Database Control is one of the system precommitting controls, the code from this article comes from

WebLogic Platform 8.1 documentation. Example and description as follows:

// File name is 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 * The following javadoc custom data source JNDI name * @jc:. connection data-source-jndi-name = "cgSampleDataSource" * / public interface ItemsDatabase extends DatabaseControl, com.bea.control. ControleXtension // is a database control and is an extension of com.bea.control.controleXtension {/ ** * select item price based on item number. * Javadoc indicates that the method to perform SQL, {itemnumber} will use int itemnumber Value replace * @JC: SQL Statement = "SELECT price from items where itemnumber =

{itemnumber} "* / double selectitemprice;} WebLogic Platform 8.1 Workshop provides very friendly interface, let us edit SQL and methods directly

Name / Description .WebLogic Platform 8.1 Database Control Development Mode is the way we dream of,

very good!

转载请注明原文地址:https://www.9cbs.com/read-122058.html

New Post(0)