Roster_2prm6y_ELOImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:10k
源码类别:
Java编程
开发平台:
Java
- /**
- * This code was automatically generated at 16:30:06 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 Roster_2prm6y_ELOImpl
- extends weblogic.ejb20.internal.EntityEJBLocalObject
- implements cmpsample.Roster, weblogic.utils.PlatformConstants, java.io.Serializable
- {
- public Roster_2prm6y_ELOImpl() {}
- public java.lang.String getStudentID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Roster_2prm6y_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 [] { }));
- }
- Roster_2prm6y_Intf __bean = (Roster_2prm6y_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.RosterBean.getStudentID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String fetchStudentID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Roster_2prm6y_LocalHomeImpl)getEJBLocalHome()).md_eo_fetchStudentID;
- 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 [] { }));
- }
- Roster_2prm6y_Intf __bean = (Roster_2prm6y_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.fetchStudentID(
- );
- ((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.RosterBean.fetchStudentID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public java.lang.String fetchRosterID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Roster_2prm6y_LocalHomeImpl)getEJBLocalHome()).md_eo_fetchRosterID;
- 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 [] { }));
- }
- Roster_2prm6y_Intf __bean = (Roster_2prm6y_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.fetchRosterID(
- );
- ((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.RosterBean.fetchRosterID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void setStudentID(java.lang.String arg0)
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Roster_2prm6y_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}));
- }
- Roster_2prm6y_Intf __bean = (Roster_2prm6y_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.RosterBean.setStudentID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- // No return result
- }
- public java.lang.String fetchScheduleID()
- {
- java.lang.Throwable __ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper __wrap;
- weblogic.ejb20.internal.MethodDescriptor __md =
- ((Roster_2prm6y_LocalHomeImpl)getEJBLocalHome()).md_eo_fetchScheduleID;
- 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 [] { }));
- }
- Roster_2prm6y_Intf __bean = (Roster_2prm6y_Intf) __wrap.getBean();
- java.lang.String result = null;
- int __oldState = __bean.__WL_getMethodState();
- try {
- __bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
- result = __bean.fetchScheduleID(
- );
- ((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.RosterBean.fetchScheduleID():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void remove()
- throws javax.ejb.RemoveException
- {
- super.remove(((Roster_2prm6y_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.");
- }
- }