BMPBEAN_4ovokw_LocalHomeImpl.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:6k
源码类别:
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_LocalHomeImpl
- extends weblogic.ejb20.internal.EntityEJBLocalHome
- implements com.cwj.userjmssesenbdb.BMPBEANHome, 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_setShancbz_S;
- public weblogic.ejb20.internal.MethodDescriptor md_eo_getXiwbz;
- 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_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_LocalHomeImpl() {
- super(BMPBEAN_4ovokw_ELOImpl.class
- , com.cwj.userjmssesenbdb.BMPBEANPK.class);
- }
- public com.cwj.userjmssesenbdb.BMPBEAN create (java.lang.String arg0,java.lang.String arg1)
- throws javax.ejb.CreateException
- {
- try {
- return (com.cwj.userjmssesenbdb.BMPBEAN) super.create(md_ejbCreate_SS,
- mth_ejbCreate_SS, mth_postejbCreate_SS,
- new Object [] { arg0, arg1});
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException)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.BMPBEAN findByPrimaryKey(com.cwj.userjmssesenbdb.BMPBEANPK arg0)
- throws javax.ejb.FinderException
- {
- try {
- return (com.cwj.userjmssesenbdb.BMPBEAN)
- super.findByPrimaryKey(md_ejbFindByPrimaryKey_com_cwj_userjmssesenbdb_BMPBEANPK, arg0 );
- } catch (java.lang.Exception e) {
- if (e instanceof javax.ejb.EJBException) {
- throw (javax.ejb.EJBException)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.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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException)e;
- }
- else if (e instanceof javax.ejb.CreateException) {
- throw (javax.ejb.CreateException) e;
- }
- else {
- throw new javax.ejb.EJBException("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){
- 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 javax.ejb.EJBException) {
- throw (javax.ejb.EJBException)e;
- }
- else {
- throw new javax.ejb.EJBException("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 javax.ejb.RemoveException
- {
- super.remove(md_ejbRemove_O, pk);
- }
- }