一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
源代码在线查看: purchasebeancacheentry_e813240d.java
package salesdb.websphere_deploy; /** * Cache Entry interface for Enterprise Bean: Purchase */ public interface PurchaseBeanCacheEntry_e813240d extends java.io.Serializable { /** * getPurchaseid */ public java.lang.Long getPurchaseid(); /** * setPurchaseid */ public void setPurchaseid(java.lang.Long newPurchaseid); /** * getTimestmp */ public java.lang.String getTimestmp(); /** * setTimestmp */ public void setTimestmp(java.lang.String newTimestmp); /** * getItemfk_itemid */ public java.lang.Long getItemfk_itemid(); /** * setItemfk_itemid */ public void setItemfk_itemid(java.lang.Long newItemfk_itemid); /** * getLocationfk_zipcode */ public java.lang.String getLocationfk_zipcode(); /** * setLocationfk_zipcode */ public void setLocationfk_zipcode(java.lang.String newLocationfk_zipcode); /** * getItemfkKey */ public salesdb.ItemKey getItemfkKey(); /** * getLocationfkKey */ public salesdb.LocationKey getLocationfkKey(); }