customerbmp_ddjss0_homeimpl.java

来自「郭克华j2ee高级框架实战教学视频源代码 这个是比较值得一看的 由郭克华博士」· Java 代码 · 共 163 行

JAVA
163
字号
/**
* This code was automatically generated at 18:47:41 on 2007-11-15
* 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) 2007 by BEA Systems, Inc. All Rights Reserved.
*/

package prj32_1;
import weblogic.ejb20.interfaces.WLEnterpriseBean;
public final class CustomerBmp_ddjss0_HomeImpl
extends    weblogic.ejb20.internal.EntityEJBHome
implements prj32_1.CustomerBmpRemoteHome, weblogic.utils.PlatformConstants

{
  public weblogic.ejb20.internal.MethodDescriptor md_eo_getCname;
  public weblogic.ejb20.internal.MethodDescriptor md_eo_getCbalance;
  public weblogic.ejb20.internal.MethodDescriptor md_eo_getAccount;
  public weblogic.ejb20.internal.MethodDescriptor md_eo_getPassword;
  public weblogic.ejb20.internal.MethodDescriptor md_eo_setCname_S;
  public weblogic.ejb20.internal.MethodDescriptor md_eo_setCbalance_d;
  public weblogic.ejb20.internal.MethodDescriptor md_eo_setPassword_S;
  
  
  public weblogic.ejb20.internal.MethodDescriptor md_ejbCreate_SSSd;
  
  
  public weblogic.ejb20.internal.MethodDescriptor md_ejbFindByPrimaryKey_S;
  public weblogic.ejb20.internal.MethodDescriptor md_ejbFindByCbalance_d;
  
  
  
  private static java.lang.reflect.Method mth_ejbCreate_SSSd;
  private static java.lang.reflect.Method mth_postejbCreate_SSSd;
  
  
  
  
  
  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_SSSd = CustomerBmp_ddjss0_Intf.class.getMethod(
      "ejbCreate", new Class [] {java.lang.String.class, java.lang.String.class, java.lang.String.class, double.class});
      
      if (true) {
        mth_postejbCreate_SSSd = CustomerBmp_ddjss0_Intf.class.getMethod(
        "ejbPostCreate", new Class [] {java.lang.String.class, java.lang.String.class, java.lang.String.class, double.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 CustomerBmp_ddjss0_HomeImpl() {
    super(CustomerBmp_ddjss0_EOImpl.class
    , java.lang.String.class);
  }
  
  
  public prj32_1.CustomerBmpRemote create (java.lang.String arg0,java.lang.String arg1,java.lang.String arg2,double arg3)
  throws javax.ejb.CreateException, java.rmi.RemoteException
  {
    try {
      return (prj32_1.CustomerBmpRemote) super.create(md_ejbCreate_SSSd,
      mth_ejbCreate_SSSd, mth_postejbCreate_SSSd, 
      new Object [] {  arg0, arg1, arg2,new Double( arg3)});
      
    } 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 prj32_1.CustomerBmpRemote findByPrimaryKey(java.lang.String arg0)
  throws javax.ejb.FinderException, java.rmi.RemoteException
  {
    try {
      return (prj32_1.CustomerBmpRemote)
      super.findByPrimaryKey(md_ejbFindByPrimaryKey_S,  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 java.util.Collection findByCbalance(double arg0)
  throws javax.ejb.FinderException, java.rmi.RemoteException
  {
    try {
      return (java.util.Collection)
      super.finder(md_ejbFindByCbalance_d, new Object [] { new Double( arg0)} , weblogic.ejb20.internal.EntityEJBHome.COLL_FINDER);
    } 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 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);
  }
  
  
}

⌨️ 快捷键说明

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