samplebean_f1lhsm_homeimpl.java

来自「EJB的相关学习资料」· Java 代码 · 共 108 行

JAVA
108
字号
/**
 * This code was automatically generated at 0:47:43 on 2005-3-17
 * by weblogic.ejb20.ejbc.Ejb2Rmi -- do not edit.
 *
 * @version unknown
 * @author Copyright (c) 2005 by BEA Systems, Inc. All Rights Reserved.
 */

package debugejb;

public final class sampleBean_f1lhsm_HomeImpl
     extends    weblogic.ejb20.internal.StatelessEJBHome
     implements debugejb.sampleHome, weblogic.utils.PlatformConstants
                
{
  public weblogic.ejb20.internal.MethodDescriptor md_eo_test;


  public weblogic.ejb20.internal.MethodDescriptor md_ejbCreate;


  

  
  private static java.lang.reflect.Method mth_ejbCreate;
  private static java.lang.reflect.Method mth_postejbCreate;



  

  public weblogic.ejb20.internal.MethodDescriptor md_eo_remove;

  public weblogic.ejb20.internal.MethodDescriptor md_ejbRemove_Handle;
  public weblogic.ejb20.internal.MethodDescriptor md_ejbRemove_O;

  static {

    try {

      
  mth_ejbCreate = sampleBean.class.getMethod(
    "ejbCreate", null);

  if (false) {
    mth_postejbCreate = sampleBean.class.getMethod(
        "ejbPostCreate", null); 
  }





    } catch (Exception e) {
      throw new weblogic.utils.AssertionError("Unable to find expected "+
        "methods.  Please check your classpath for stale versions of "+
        "your ejb classes and re-run weblogic.ejbc");
    }
  }


  public sampleBean_f1lhsm_HomeImpl() {
    super(sampleBean_f1lhsm_EOImpl.class
          );
  }

  
public debugejb.sample create ()
   throws javax.ejb.CreateException, java.rmi.RemoteException
{
  try {
    return (debugejb.sample) super.create(md_ejbCreate);
  } 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 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_Handle, h);
  }


}

⌨️ 快捷键说明

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