User: neales  
  Date: 02/03/07 09:03:54

  Added:       src/main/org/jboss/test/proxycompiler/beans/ejb
                        ProxyCompilerTestBean.java
  Log:
  o Replace org.jboss.proxy.compiler with a BCEL implementation
  o Add a test for this.
  
  Revision  Changes    Path
  1.1                  
jbosstest/src/main/org/jboss/test/proxycompiler/beans/ejb/ProxyCompilerTestBean.java
  
  Index: ProxyCompilerTestBean.java
  ===================================================================
  
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   *
   */
  
  package org.jboss.test.proxycompiler.beans.ejb; // Generated package name
  
  import java.rmi.RemoteException;
  
  import javax.ejb.EntityBean;
  
  import javax.ejb.EntityContext;
  
  import org.jboss.test.proxycompiler.Util;
  
  /**
   * ReadOnlyBean.java
   *
   *
   * Created: Tue Jan 22 17:13:36 2002
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Neale Swinnerton</a>
   * @version
   *
   *
   * @ejb:bean   name="ProxyCompilerTest"
   *             jndi-name="ProxyCompilerTest"
   *             local-jndi-name="LocalProxyCompilerTest"
   *             view-type="both"
   *             type="CMP"
   *             cmp-version="2.x"
   *             primkey-field="pk"
   * @ejb:pk class="java.lang.Integer"
   * @ejb:finder signature="java.util.Collection findAll()"
   */
  
  public abstract class ProxyCompilerTestBean implements EntityBean  
  {
     public ProxyCompilerTestBean ()
     {
        
     }
  
     /**
      * @ejb:create-method
      */
     public Integer ejbCreate(Integer pk)
     {
        setPk(pk);
        return pk;
     }
  
     public void ejbPostCreate(Integer pk)
     {
     }
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract Integer getPk();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setPk(Integer pk);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract boolean getBool();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setBool(boolean arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract byte getByte();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setByte(byte arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract char getChar();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setChar(char arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract double getDouble();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setDouble(double arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract float getFloat();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setFloat(float arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract int getInt();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setInt(int arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract long getLong();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setLong(long arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract short getShort();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setShort(short arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract Object[] getObjectArray();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setObjectArray(Object[] arg);
  
     /**
      * @ejb:persistent-field
      * @ejb:interface-method
      */
     public abstract int[] getIntArray();
  
     /**
      * @ejb:interface-method
      */
     public abstract void setIntArray(int[] arg);
  
     /**
      * @ejb:interface-method
      */
     public  boolean noArgsMethod() {
        return true;
     }
  
     /**
      * @ejb:interface-method
      */
     public String complexSignatureMethod(int i, Object ref, int[] ints, Object[] 
objectRefs) {
        return Util.getStringRepresentation(i, ref, ints, objectRefs);
     }
     
     public void ejbActivate() throws RemoteException 
     {
     }
     
     public void ejbPassivate() throws RemoteException 
     {
     }
     
     public void ejbLoad() throws RemoteException 
     {
     }
     
     public void ejbStore() throws RemoteException 
     {
     }
     
     public void ejbRemove() throws RemoteException 
     {
     }
     
     public void setEntityContext(EntityContext ctx) throws RemoteException 
     {
     }
     
     public void unsetEntityContext() throws RemoteException 
     {
     }
     
  }// ReadOnlyBean
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to