ShoppingCart_cycb4w_EOImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:10k
源码类别:
Java编程
开发平台:
Java
- /**
- * This code was automatically generated at 16:10:09 on 2003-8-29
- * by weblogic.ejb20.ejbc.Ejb2Rmi -- do not edit.
- *
- * @version WebLogic Server 8.1 Fri Jun 20 23:06:40 PDT 2003 271009
- * @author Copyright (c) 2003 by BEA Systems, Inc. All Rights Reserved.
- */
- package sfsbsample;
- import weblogic.ejb20.interfaces.WLEnterpriseBean;
- public final class ShoppingCart_cycb4w_EOImpl
- extends weblogic.ejb20.internal.StatefulEJBObject_Activatable
- implements sfsbsample.ShoppingCart, weblogic.utils.PlatformConstants
- {
- public ShoppingCart_cycb4w_EOImpl() {}
- public void deleteASchedule(java.lang.String arg0)
- throws java.rmi.RemoteException
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_deleteASchedule_S;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- ShoppingCart_cycb4w_Intf __bean = (ShoppingCart_cycb4w_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.deleteASchedule( arg0);
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "sfsbsample.ShoppingCartBean.deleteASchedule():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void addASchedule(sfsbsample.ScheduleVO arg0)
- throws java.rmi.RemoteException
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_addASchedule_sfsbsample_ScheduleVO;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- ShoppingCart_cycb4w_Intf __bean = (ShoppingCart_cycb4w_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.addASchedule( arg0);
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "sfsbsample.ShoppingCartBean.addASchedule():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void checkOut() throws java.rmi.RemoteException
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_checkOut;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- ShoppingCart_cycb4w_Intf __bean = (ShoppingCart_cycb4w_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.checkOut();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "sfsbsample.ShoppingCartBean.checkOut():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void emptyMyScheduleList() throws java.rmi.RemoteException
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_emptyMyScheduleList;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- ShoppingCart_cycb4w_Intf __bean = (ShoppingCart_cycb4w_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.emptyMyScheduleList();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "sfsbsample.ShoppingCartBean.emptyMyScheduleList():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public double getTotalCost() throws java.rmi.RemoteException
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_getTotalCost;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- ShoppingCart_cycb4w_Intf __bean = (ShoppingCart_cycb4w_Intf) __wrap.getBean();
- double result = 0;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getTotalCost();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "sfsbsample.ShoppingCartBean.getTotalCost():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.util.Vector getMyScheduleList() throws java.rmi.RemoteException
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_getMyScheduleList;
- try {
- __wrap = super.preInvoke(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvoke(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- ShoppingCart_cycb4w_Intf __bean = (ShoppingCart_cycb4w_Intf) __wrap.getBean();
- java.util.Vector result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getMyScheduleList();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvoke(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "sfsbsample.ShoppingCartBean.getMyScheduleList():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void remove()
- throws javax.ejb.RemoveException, java.rmi.RemoteException
- {
- super.remove(((ShoppingCart_cycb4w_HomeImpl)getEJBHome()).md_eo_remove);
- }
- }