📄 sb_customermanager_6fe4su_eoimpl.java
字号:
/**
* This code was automatically generated at 1:33:20 on 2006-9-2
* by weblogic.ejb20.ejbc.Ejb2Rmi -- do not edit.
*
* @version WebLogic Server 8.1 Thu Mar 20 23:06:05 PST 2003 246620
* @author Copyright (c) 2006 by BEA Systems, Inc. All Rights Reserved.
*/
package com.xc.hotelmanager.hotel.control.session;
import weblogic.ejb20.interfaces.WLEnterpriseBean;
public final class SB_CustomerManager_6fe4su_EOImpl
extends weblogic.ejb20.internal.StatelessEJBObject
implements com.xc.hotelmanager.hotel.control.session.SB_CustomerManager, weblogic.utils.PlatformConstants
{
public SB_CustomerManager_6fe4su_EOImpl() {}
public com.xc.hotelmanager.hotel.model.Customer addCustomer(com.xc.hotelmanager.hotel.model.Customer arg0)
throws com.xc.hotelmanager.hotel.exception.HotelManagerException, java.rmi.RemoteException
{
java.lang.Throwable __ee = null;
weblogic.ejb20.interfaces.InvocationWrapper __wrap;
weblogic.ejb20.internal.MethodDescriptor __md =
((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_addCustomer_com_xc_hotelmanager_hotel_model_Customer;
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}));
}
SB_CustomerManager_6fe4su_Intf __bean = (SB_CustomerManager_6fe4su_Intf) __wrap.getBean();
com.xc.hotelmanager.hotel.model.Customer result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.addCustomer( 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 if (e instanceof com.xc.hotelmanager.hotel.exception.HotelManagerException) {
throw (com.xc.hotelmanager.hotel.exception.HotelManagerException) e;
}
else {
throw new java.rmi.UnexpectedException("Unexpected exception in " +
"com.xc.hotelmanager.hotel.control.session.SB_CustomerManagerBean.addCustomer():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public java.util.Collection getAllCustomer()
throws com.xc.hotelmanager.hotel.exception.HotelManagerException, java.rmi.RemoteException
{
java.lang.Throwable __ee = null;
weblogic.ejb20.interfaces.InvocationWrapper __wrap;
weblogic.ejb20.internal.MethodDescriptor __md =
((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_getAllCustomer;
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 [] { }));
}
SB_CustomerManager_6fe4su_Intf __bean = (SB_CustomerManager_6fe4su_Intf) __wrap.getBean();
java.util.Collection result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.getAllCustomer();
} 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 if (e instanceof com.xc.hotelmanager.hotel.exception.HotelManagerException) {
throw (com.xc.hotelmanager.hotel.exception.HotelManagerException) e;
}
else {
throw new java.rmi.UnexpectedException("Unexpected exception in " +
"com.xc.hotelmanager.hotel.control.session.SB_CustomerManagerBean.getAllCustomer():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public void removeCustomer(java.lang.String arg0)
throws com.xc.hotelmanager.hotel.exception.HotelManagerException, java.rmi.RemoteException
{
java.lang.Throwable __ee = null;
weblogic.ejb20.interfaces.InvocationWrapper __wrap;
weblogic.ejb20.internal.MethodDescriptor __md =
((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_removeCustomer_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}));
}
SB_CustomerManager_6fe4su_Intf __bean = (SB_CustomerManager_6fe4su_Intf) __wrap.getBean();
// No return value
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
__bean.removeCustomer( 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 if (e instanceof com.xc.hotelmanager.hotel.exception.HotelManagerException) {
throw (com.xc.hotelmanager.hotel.exception.HotelManagerException) e;
}
else {
throw new java.rmi.UnexpectedException("Unexpected exception in " +
"com.xc.hotelmanager.hotel.control.session.SB_CustomerManagerBean.removeCustomer():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
// No return result
}
public com.xc.hotelmanager.hotel.model.Customer loadCustomer(java.lang.String arg0)
throws com.xc.hotelmanager.hotel.exception.HotelManagerException, java.rmi.RemoteException
{
java.lang.Throwable __ee = null;
weblogic.ejb20.interfaces.InvocationWrapper __wrap;
weblogic.ejb20.internal.MethodDescriptor __md =
((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_loadCustomer_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}));
}
SB_CustomerManager_6fe4su_Intf __bean = (SB_CustomerManager_6fe4su_Intf) __wrap.getBean();
com.xc.hotelmanager.hotel.model.Customer result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.loadCustomer( 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 if (e instanceof com.xc.hotelmanager.hotel.exception.HotelManagerException) {
throw (com.xc.hotelmanager.hotel.exception.HotelManagerException) e;
}
else {
throw new java.rmi.UnexpectedException("Unexpected exception in " +
"com.xc.hotelmanager.hotel.control.session.SB_CustomerManagerBean.loadCustomer():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public com.xc.hotelmanager.hotel.model.Customer exitCustomer(java.lang.String arg0)
throws com.xc.hotelmanager.hotel.exception.HotelManagerException, java.rmi.RemoteException
{
java.lang.Throwable __ee = null;
weblogic.ejb20.interfaces.InvocationWrapper __wrap;
weblogic.ejb20.internal.MethodDescriptor __md =
((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_exitCustomer_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}));
}
SB_CustomerManager_6fe4su_Intf __bean = (SB_CustomerManager_6fe4su_Intf) __wrap.getBean();
com.xc.hotelmanager.hotel.model.Customer result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.exitCustomer( 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 if (e instanceof com.xc.hotelmanager.hotel.exception.HotelManagerException) {
throw (com.xc.hotelmanager.hotel.exception.HotelManagerException) e;
}
else {
throw new java.rmi.UnexpectedException("Unexpected exception in " +
"com.xc.hotelmanager.hotel.control.session.SB_CustomerManagerBean.exitCustomer():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public com.xc.hotelmanager.hotel.model.Customer saveCustomer(com.xc.hotelmanager.hotel.model.Customer arg0)
throws com.xc.hotelmanager.hotel.exception.HotelManagerException, java.rmi.RemoteException
{
java.lang.Throwable __ee = null;
weblogic.ejb20.interfaces.InvocationWrapper __wrap;
weblogic.ejb20.internal.MethodDescriptor __md =
((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_saveCustomer_com_xc_hotelmanager_hotel_model_Customer;
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}));
}
SB_CustomerManager_6fe4su_Intf __bean = (SB_CustomerManager_6fe4su_Intf) __wrap.getBean();
com.xc.hotelmanager.hotel.model.Customer result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.saveCustomer( 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 if (e instanceof com.xc.hotelmanager.hotel.exception.HotelManagerException) {
throw (com.xc.hotelmanager.hotel.exception.HotelManagerException) e;
}
else {
throw new java.rmi.UnexpectedException("Unexpected exception in " +
"com.xc.hotelmanager.hotel.control.session.SB_CustomerManagerBean.saveCustomer():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public void remove()
throws javax.ejb.RemoveException, java.rmi.RemoteException
{
super.remove(((SB_CustomerManager_6fe4su_HomeImpl)getEJBHome()).md_eo_remove);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -