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!