BMPBEAN_4ovokw_HomeImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:7k
源码类别:
Java编程
开发平台:
Java
- /**
- * This code was automatically generated at 11:24:20 on 2003-8-30
- * 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 com.cwj.userjmssesenbdb;
- import weblogic.ejb20.interfaces.WLEnterpriseBean;
- public final class BMPBEAN_4ovokw_HomeImpl
- extends weblogic.ejb20.internal.EntityEJBHome
- implements com.cwj.userjmssesenbdb.BMPBEANRemoteHome, weblogic.utils.PlatformConstants
- {
- public weblogic.ejb20.internal.MethodDescriptor md_eo_getShancbz;
- public weblogic.ejb20.internal.MethodDescriptor md_eo_setXiwbz_S;
- public weblogic.ejb20.internal.MethodDescriptor md_eo_getXiwbz;
- public weblogic.ejb20.internal.MethodDescriptor md_eo_setShancbz_S;
- public weblogic.ejb20.internal.MethodDescriptor md_ejbCreate_SS;
- public weblogic.ejb20.internal.MethodDescriptor md_ejbFindByPrimaryKey_com_cwj_userjmssesenbdb_BMPBEANPK;
- private static java.lang.reflect.Method mth_ejbCreate_SS;
- private static java.lang.reflect.Method mth_postejbCreate_SS;
- public weblogic.ejb20.internal.MethodDescriptor md_ejbHomeejbInsertAa11_SS;
- public weblogic.ejb20.internal.MethodDescriptor md_ejbHomeejbdeleteAa11_S;
- public weblogic.ejb20.internal.MethodDescriptor md_eo_remove;
- public weblogic.ejb20.internal.MethodDescriptor md_ejbRemove_javax_ejb_Handle;
- public weblogic.ejb20.internal.MethodDescriptor md_ejbRemove_O;
- static {
- try {
- mth_ejbCreate_SS = BMPBEAN_4ovokw_Intf.class.getMethod(
- "ejbCreate", new Class [] {java.lang.String.class, java.lang.String.class});
- if (true) {
- mth_postejbCreate_SS = BMPBEAN_4ovokw_Intf.class.getMethod(
- "ejbPostCreate", new Class [] {java.lang.String.class, java.lang.String.class});
- }
- } catch (Exception e) {
- throw new AssertionError("Unable to find expected "+
- "methods. Please check your classpath for stale versions of "+
- "your ejb classes and re-run weblogic.ejbc");
- }
- }
- public BMPBEAN_4ovokw_HomeImpl() {
- super(BMPBEAN_4ovokw_EOImpl.class
- , com.cwj.userjmssesenbdb.BMPBEANPK.class);
- }
- public com.cwj.userjmssesenbdb.BMPBEANRemote create (java.lang.String arg0,java.lang.String arg1)
- throws javax.ejb.CreateException, java.rmi.RemoteException
- {
- try {
- return (com.cwj.userjmssesenbdb.BMPBEANRemote) super.create(md_ejbCreate_SS,
- mth_ejbCreate_SS, mth_postejbCreate_SS,
- new Object [] { arg0, arg1});
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else if (e instanceof javax.ejb.CreateException) {
- throw (javax.ejb.CreateException) e;
- }
- else {
- throw new javax.ejb.CreateException ("Error while creating bean: " +
- e.toString());
- }
- }
- }
- public com.cwj.userjmssesenbdb.BMPBEANRemote findByPrimaryKey(com.cwj.userjmssesenbdb.BMPBEANPK arg0)
- throws javax.ejb.FinderException, java.rmi.RemoteException
- {
- try {
- return (com.cwj.userjmssesenbdb.BMPBEANRemote)
- super.findByPrimaryKey(md_ejbFindByPrimaryKey_com_cwj_userjmssesenbdb_BMPBEANPK, arg0 );
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else if (e instanceof javax.ejb.FinderException) {
- throw (javax.ejb.FinderException) e;
- }
- else {
- throw new javax.ejb.FinderException ("Error while finding bean: " +
- e.toString());
- }
- }
- }
- public com.cwj.userjmssesenbdb.BMPBEANPK ejbInsertAa11(java.lang.String arg0, java.lang.String arg1)
- throws javax.ejb.CreateException, java.rmi.RemoteException{
- java.lang.Throwable ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper wrap =
- super.preEntityHomeInvoke(md_ejbHomeejbInsertAa11_SS);
- BMPBEAN_4ovokw_Intf bean = (BMPBEAN_4ovokw_Intf)wrap.getBean();
- int oldState = bean.__WL_getMethodState();
- com.cwj.userjmssesenbdb.BMPBEANPK result = null;
- try {
- bean.__WL_setMethodState(WLEnterpriseBean.STATE_EJBHOME);
- result = bean.ejbHomeEjbInsertAa11( arg0, arg1);
- } catch (java.lang.Throwable t) {
- ee = t;
- }
- finally {
- bean.__WL_setMethodState(oldState);
- }
- try {
- super.postEntityHomeInvoke(wrap, ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else if (e instanceof javax.ejb.CreateException) {
- throw (javax.ejb.CreateException) e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "com.cwj.userjmssesenbdb.BMPBEANBean.ejbInsertAa11():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public com.cwj.userjmssesenbdb.BMPBEANPK ejbdeleteAa11(java.lang.String arg0)
- throws java.rmi.RemoteException{
- java.lang.Throwable ee = null;
- weblogic.ejb20.interfaces.InvocationWrapper wrap =
- super.preEntityHomeInvoke(md_ejbHomeejbdeleteAa11_S);
- BMPBEAN_4ovokw_Intf bean = (BMPBEAN_4ovokw_Intf)wrap.getBean();
- int oldState = bean.__WL_getMethodState();
- com.cwj.userjmssesenbdb.BMPBEANPK result = null;
- try {
- bean.__WL_setMethodState(WLEnterpriseBean.STATE_EJBHOME);
- result = bean.ejbHomeEjbdeleteAa11( arg0);
- } catch (java.lang.Throwable t) {
- ee = t;
- }
- finally {
- bean.__WL_setMethodState(oldState);
- }
- try {
- super.postEntityHomeInvoke(wrap, ee);
- } catch (java.lang.Exception e) {
- if (e instanceof java.rmi.RemoteException) {
- throw (java.rmi.RemoteException)e;
- }
- else {
- throw new java.rmi.UnexpectedException("Unexpected exception in " +
- "com.cwj.userjmssesenbdb.BMPBEANBean.ejbdeleteAa11():" + EOL +
- weblogic.utils.StackTraceUtils.throwable2StackTrace(e), e);
- }
- }
- return result;
- }
- public void remove(java.lang.Object pk)
- throws java.rmi.RemoteException, javax.ejb.RemoveException
- {
- super.remove(md_ejbRemove_O, pk);
- }
- public void remove(javax.ejb.Handle h)
- throws java.rmi.RemoteException, javax.ejb.RemoveException
- {
- super.remove(md_ejbRemove_javax_ejb_Handle, h);
- }
- }