Address_n6e4pc_ELOImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:19k
源码类别:
Java编程
开发平台:
Java
- /**
- * This code was automatically generated at 16:30:07 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 cmpsample;
- import weblogic.ejb20.interfaces.WLEnterpriseBean;
- public final class Address_n6e4pc_ELOImpl
- extends weblogic.ejb20.internal.EntityEJBLocalObject
- implements cmpsample.Address, weblogic.utils.PlatformConstants, java.io.Serializable
- {
- public Address_n6e4pc_ELOImpl() {}
- public void setCity(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_setCity_S;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setCity(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.setCity():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public java.lang.String getStudentID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_getStudentID;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getStudentID(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.getStudentID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String getCity()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_getCity;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getCity(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.getCity():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void setZip(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_setZip_S;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setZip(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.setZip():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public java.lang.String getState()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_getState;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getState(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.getState():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String getAddressID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_getAddressID;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getAddressID(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.getAddressID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String getZip()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_getZip;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getZip(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.getZip():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String getStreet()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_getStreet;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { }));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getStreet(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.getStreet():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void setState(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_setState_S;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setState(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.setState():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void setStudentID(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_setStudentID_S;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setStudentID(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.setStudentID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void setStreet(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_setStreet_S;
- try {
- __wrap = super.preInvokeLite(
- __md, weblogic.ejb20.internal.DummyContextHandler.THE_ONE);
- } catch (weblogic.ejb20.internal.NeedRealContextHandlerError e) {
- __wrap = super.preInvokeLite(
- __md, new weblogic.ejb20.internal.EJBContextHandler(
- __md, new Object [] { arg0}));
- }
- Address_n6e4pc_Intf __bean = (Address_n6e4pc_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setStreet(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } catch (java.lang.Throwable t) {
- __ee = t;
- }
- finally {
- __bean.__WL_setMethodState(__oldState);
- }
- try {
- super.postInvokeLite(__wrap, __ee);
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.AddressBean.setStreet():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void remove()
- throws javax.ejb.RemoveException
- {
- super.remove(((Address_n6e4pc_LocalHomeImpl)getEJBLocalHome()).md_eo_remove);
- }
- private void writeObject(java.io.ObjectOutputStream out)
- throws java.io.IOException
- {
- throw new javax.ejb.EJBException(
- "Attempt to pass a reference to an EJBLocalObject to a remote " +
- "client. A local EJB component may only be accessed by clients " +
- "co-located in the same ear or standalone jar file.");
- }
- private void readObject(java.io.ObjectInputStream in)
- throws java.io.IOException, java.lang.ClassNotFoundException
- {
- // this method is never called
- throw new javax.ejb.EJBException(
- "Attempt to pass a reference to an EJBLocalObject to a remote " +
- "client. A local EJB component may only be accessed by clients " +
- "co-located in the same ear or standalone jar file.");
- }
- }