?? sb_hotelmanager_s744ls_eoimpl.java
字號:
/**
* This code was automatically generated at 1:33:19 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_hotelmanager_s744ls_EOImpl
extends weblogic.ejb20.internal.StatelessEJBObject
implements com.xc.hotelmanager.hotel.control.session.SB_hotelmanager, weblogic.utils.PlatformConstants
{
public SB_hotelmanager_s744ls_EOImpl() {}
public java.util.Collection SearchRes(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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_SearchRes_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_hotelmanager_s744ls_Intf __bean = (SB_hotelmanager_s744ls_Intf) __wrap.getBean();
java.util.Collection result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.SearchRes( 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_hotelmanagerBean.SearchRes():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public int getRoomprice(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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_getRoomprice_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_hotelmanager_s744ls_Intf __bean = (SB_hotelmanager_s744ls_Intf) __wrap.getBean();
int result = 0;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.getRoomprice( 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_hotelmanagerBean.getRoomprice():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public void CancleRes(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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_CancleRes_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_hotelmanager_s744ls_Intf __bean = (SB_hotelmanager_s744ls_Intf) __wrap.getBean();
// No return value
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
__bean.CancleRes( 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_hotelmanagerBean.CancleRes():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
// No return result
}
public java.lang.String ResRoom(com.xc.hotelmanager.hotel.model.Reservation arg0, int arg1, java.lang.String arg2)
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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_ResRoom_com_xc_hotelmanager_hotel_model_ReservationiS;
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,new Integer( arg1), arg2}));
}
SB_hotelmanager_s744ls_Intf __bean = (SB_hotelmanager_s744ls_Intf) __wrap.getBean();
java.lang.String result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.ResRoom( arg0, arg1, arg2);
} 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_hotelmanagerBean.ResRoom():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public com.xc.hotelmanager.hotel.model.RoomType addRmtype(com.xc.hotelmanager.hotel.model.RoomType 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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_addRmtype_com_xc_hotelmanager_hotel_model_RoomType;
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_hotelmanager_s744ls_Intf __bean = (SB_hotelmanager_s744ls_Intf) __wrap.getBean();
com.xc.hotelmanager.hotel.model.RoomType result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.addRmtype( 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_hotelmanagerBean.addRmtype():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public com.xc.hotelmanager.hotel.model.RoomType loadRoomType(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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_loadRoomType_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_hotelmanager_s744ls_Intf __bean = (SB_hotelmanager_s744ls_Intf) __wrap.getBean();
com.xc.hotelmanager.hotel.model.RoomType result = null;
int __oldState = __bean.__WL_getMethodState();
try {
__bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
result = __bean.loadRoomType( 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_hotelmanagerBean.loadRoomType():" + EOL +
weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
}
}
return result;
}
public java.util.Collection getRoomByType1(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_hotelmanager_s744ls_HomeImpl)getEJBHome()).md_eo_getRoomByType1_S;
try {
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -