Student_z53p80_ELOImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:19k
源码类别:
Java编程
开发平台:
Java
- /**
- * This code was automatically generated at 16:30:04 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 Student_z53p80_ELOImpl
- extends weblogic.ejb20.internal.EntityEJBLocalObject
- implements cmpsample.Student, weblogic.utils.PlatformConstants, java.io.Serializable
- {
- public Student_z53p80_ELOImpl() {}
- public java.lang.String getLastname()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_getLastname;
- 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 [] { }));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getLastname(
- );
- ((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.StudentBean.getLastname():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String getFirstname()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_getFirstname;
- 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 [] { }));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getFirstname(
- );
- ((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.StudentBean.getFirstname():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String getStudentID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_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 [] { }));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_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.StudentBean.getStudentID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void setAddress(java.util.Collection arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_setAddress_java_util_Collection;
- 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}));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setAddress(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.StudentBean.setAddress():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void addAddress(cmpsample.Address arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_addAddress_cmpsample_Address;
- 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}));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.addAddress(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.StudentBean.addAddress():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void setFirstname(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_setFirstname_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}));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setFirstname(
- 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.StudentBean.setFirstname():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void addRoster(cmpsample.Roster arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_addRoster_cmpsample_Roster;
- 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}));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.addRoster(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.StudentBean.addRoster():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public java.util.ArrayList getRosterList()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_getRosterList;
- 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 [] { }));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- java.util.ArrayList result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getRosterList(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.StudentBean.getRosterList():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.util.ArrayList getAddressList()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_getAddressList;
- 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 [] { }));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- java.util.ArrayList result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.getAddressList(
- );
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.StudentBean.getAddressList():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void setLastname(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_setLastname_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}));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setLastname(
- 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.StudentBean.setLastname():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void setRoster(java.util.Collection arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Student_z53p80_LocalHomeImpl)getEJBLocalHome()).md_eo_setRoster_java_util_Collection;
- 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}));
- }
- Student_z53p80_Intf __bean = (Student_z53p80_Intf) __wrap.getBean();
- // No return value
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- __bean.setRoster(
- arg0);
- ((weblogic.ejb20.persistence.spi.CMPBean) __bean).__WL_checkExistsOnMethod();
- } 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException) e;
- }
- else {
- throw new javax.ejb.EJBException("Unexpected exception in " +
- "cmpsample.StudentBean.setRoster():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public void remove()
- throws javax.ejb.RemoveException
- {
- super.remove(((Student_z53p80_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.");
- }
- }