⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ejslocalcmplocation_176caeeb.java

📁 一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
💻 JAVA
字号:
package salesdb;import com.ibm.ejs.container.*;import java.rmi.RemoteException;/** * EJSLocalCMPLocation_176caeeb */public class EJSLocalCMPLocation_176caeeb extends EJSLocalWrapper implements salesdb.LocationLocal {	/**	 * EJSLocalCMPLocation_176caeeb	 */	public EJSLocalCMPLocation_176caeeb() {		super();	}	/**	 * getAreacode	 */	public java.lang.String getAreacode() {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		java.lang.String _EJS_result = null;		try {			salesdb.LocationBean beanRef = (salesdb.LocationBean)container.preInvoke(this, 0, _EJS_s);			_EJS_result = beanRef.getAreacode();		}		catch (java.rmi.RemoteException ex) {		 	_EJS_s.setUncheckedLocalException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedLocalException(ex);		}		finally {			try {				container.postInvoke(this, 0, _EJS_s);			} catch ( RemoteException ex ) {				_EJS_s.setUncheckedLocalException(ex);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}	/**	 * getCity	 */	public java.lang.String getCity() {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		java.lang.String _EJS_result = null;		try {			salesdb.LocationBean beanRef = (salesdb.LocationBean)container.preInvoke(this, 1, _EJS_s);			_EJS_result = beanRef.getCity();		}		catch (java.rmi.RemoteException ex) {		 	_EJS_s.setUncheckedLocalException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedLocalException(ex);		}		finally {			try {				container.postInvoke(this, 1, _EJS_s);			} catch ( RemoteException ex ) {				_EJS_s.setUncheckedLocalException(ex);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}	/**	 * getState	 */	public java.lang.String getState() {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);		java.lang.String _EJS_result = null;		try {			salesdb.LocationBean beanRef = (salesdb.LocationBean)container.preInvoke(this, 2, _EJS_s);			_EJS_result = beanRef.getState();		}		catch (java.rmi.RemoteException ex) {		 	_EJS_s.setUncheckedLocalException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedLocalException(ex);		}		finally {			try {				container.postInvoke(this, 2, _EJS_s);			} catch ( RemoteException ex ) {				_EJS_s.setUncheckedLocalException(ex);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return _EJS_result;	}	/**	 * setAreacode	 */	public void setAreacode(java.lang.String newAreacode) {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);				try {			salesdb.LocationBean beanRef = (salesdb.LocationBean)container.preInvoke(this, 3, _EJS_s);			beanRef.setAreacode(newAreacode);		}		catch (java.rmi.RemoteException ex) {		 	_EJS_s.setUncheckedLocalException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedLocalException(ex);		}		finally {			try {				container.postInvoke(this, 3, _EJS_s);			} catch ( RemoteException ex ) {				_EJS_s.setUncheckedLocalException(ex);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return ;	}	/**	 * setCity	 */	public void setCity(java.lang.String newCity) {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);				try {			salesdb.LocationBean beanRef = (salesdb.LocationBean)container.preInvoke(this, 4, _EJS_s);			beanRef.setCity(newCity);		}		catch (java.rmi.RemoteException ex) {		 	_EJS_s.setUncheckedLocalException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedLocalException(ex);		}		finally {			try {				container.postInvoke(this, 4, _EJS_s);			} catch ( RemoteException ex ) {				_EJS_s.setUncheckedLocalException(ex);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return ;	}	/**	 * setState	 */	public void setState(java.lang.String newState) {		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);				try {			salesdb.LocationBean beanRef = (salesdb.LocationBean)container.preInvoke(this, 5, _EJS_s);			beanRef.setState(newState);		}		catch (java.rmi.RemoteException ex) {		 	_EJS_s.setUncheckedLocalException(ex);		}		catch (Throwable ex) {			_EJS_s.setUncheckedLocalException(ex);		}		finally {			try {				container.postInvoke(this, 5, _EJS_s);			} catch ( RemoteException ex ) {				_EJS_s.setUncheckedLocalException(ex);			} finally {				container.putEJSDeployedSupport(_EJS_s);			}		}		return ;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -