ejslocalcmppurchasehome_e813240d.java
来自「一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习」· Java 代码 · 共 205 行
JAVA
205 行
package salesdb;import com.ibm.ejs.container.*;import java.rmi.RemoteException;/** * EJSLocalCMPPurchaseHome_e813240d */public class EJSLocalCMPPurchaseHome_e813240d extends EJSLocalWrapper implements salesdb.PurchaseLocalHome, salesdb.websphere_deploy.PurchaseBeanInternalLocalHome_e813240d { /** * EJSLocalCMPPurchaseHome_e813240d */ public EJSLocalCMPPurchaseHome_e813240d() { super(); } /** * create */ public salesdb.PurchaseLocal create(java.lang.Long purchaseid) throws javax.ejb.CreateException { EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this); salesdb.PurchaseLocal _EJS_result = null; try { salesdb.EJSCMPPurchaseHomeBean_e813240d _EJS_beanRef = (salesdb.EJSCMPPurchaseHomeBean_e813240d)container.preInvoke(this, 0, _EJS_s); _EJS_result = _EJS_beanRef.create_Local(purchaseid); } catch (javax.ejb.CreateException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedLocalException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedLocalException(ex); } finally { try { container.postInvoke(this, 0, _EJS_s); } catch ( RemoteException ex ) { _EJS_s.setUncheckedLocalException(ex); } finally { container.putEJSDeployedSupport(_EJS_s); } } return _EJS_result; } /** * create */ public salesdb.PurchaseLocal create(java.lang.Long purchaseid, java.lang.String timestmp) throws javax.ejb.CreateException { EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this); salesdb.PurchaseLocal _EJS_result = null; try { salesdb.EJSCMPPurchaseHomeBean_e813240d _EJS_beanRef = (salesdb.EJSCMPPurchaseHomeBean_e813240d)container.preInvoke(this, 1, _EJS_s); _EJS_result = _EJS_beanRef.create_Local(purchaseid, timestmp); } catch (javax.ejb.CreateException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedLocalException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedLocalException(ex); } finally { try { container.postInvoke(this, 1, _EJS_s); } catch ( RemoteException ex ) { _EJS_s.setUncheckedLocalException(ex); } finally { container.putEJSDeployedSupport(_EJS_s); } } return _EJS_result; } /** * findByPrimaryKey */ public salesdb.PurchaseLocal findByPrimaryKey(salesdb.PurchaseKey primaryKey) throws javax.ejb.FinderException { EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this); salesdb.PurchaseLocal _EJS_result = null; try { salesdb.EJSCMPPurchaseHomeBean_e813240d _EJS_beanRef = (salesdb.EJSCMPPurchaseHomeBean_e813240d)container.preInvoke(this, 2, _EJS_s); _EJS_result = _EJS_beanRef.findByPrimaryKey_Local(primaryKey); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedLocalException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedLocalException(ex); } finally { try { container.postInvoke(this, 2, _EJS_s); } catch ( RemoteException ex ) { _EJS_s.setUncheckedLocalException(ex); } finally { container.putEJSDeployedSupport(_EJS_s); } } return _EJS_result; } /** * remove */ public void remove(java.lang.Object arg0) throws javax.ejb.RemoveException, javax.ejb.EJBException { EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this); try { salesdb.EJSCMPPurchaseHomeBean_e813240d _EJS_beanRef = (salesdb.EJSCMPPurchaseHomeBean_e813240d)container.preInvoke(this, 3, _EJS_s); _EJS_beanRef.remove(arg0); } catch (javax.ejb.RemoveException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (javax.ejb.EJBException ex) { _EJS_s.setUncheckedLocalException(ex); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedLocalException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedLocalException(ex); } finally { try { container.postInvoke(this, 3, _EJS_s); } catch ( RemoteException ex ) { _EJS_s.setUncheckedLocalException(ex); } finally { container.putEJSDeployedSupport(_EJS_s); } } return ; } /** * findItemfkPurchaseInverseByItemfkKey_Local */ public java.util.Collection findItemfkPurchaseInverseByItemfkKey_Local(salesdb.ItemKey key) throws javax.ejb.FinderException { EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this); java.util.Collection _EJS_result = null; try { salesdb.EJSCMPPurchaseHomeBean_e813240d _EJS_beanRef = (salesdb.EJSCMPPurchaseHomeBean_e813240d)container.preInvoke(this, -2, _EJS_s); _EJS_result = _EJS_beanRef.findItemfkPurchaseInverseByItemfkKey_Local(key); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedLocalException(ex); } finally { try { container.postInvoke(this, -2, _EJS_s); } catch ( RemoteException ex ) { _EJS_s.setUncheckedLocalException(ex); } finally { container.putEJSDeployedSupport(_EJS_s); } } return _EJS_result; } /** * findLocationfkPurchaseInverseByLocationfkKey_Local */ public java.util.Collection findLocationfkPurchaseInverseByLocationfkKey_Local(salesdb.LocationKey key) throws javax.ejb.FinderException { EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this); java.util.Collection _EJS_result = null; try { salesdb.EJSCMPPurchaseHomeBean_e813240d _EJS_beanRef = (salesdb.EJSCMPPurchaseHomeBean_e813240d)container.preInvoke(this, -2, _EJS_s); _EJS_result = _EJS_beanRef.findLocationfkPurchaseInverseByLocationfkKey_Local(key); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedLocalException(ex); } finally { try { container.postInvoke(this, -2, _EJS_s); } catch ( RemoteException ex ) { _EJS_s.setUncheckedLocalException(ex); } finally { container.putEJSDeployedSupport(_EJS_s); } } return _EJS_result; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?