User: stevensa
  Date: 02/03/03 17:20:35

  Modified:    core/samples/src/java/test/ejb CustomerBMPBean.java
  Log:
  Added DAO and Bluestone subtasks
  
  Revision  Changes    Path
  1.7       +3 -18     xdoclet/core/samples/src/java/test/ejb/CustomerBMPBean.java
  
  Index: CustomerBMPBean.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/core/samples/src/java/test/ejb/CustomerBMPBean.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -w -r1.6 -r1.7
  --- CustomerBMPBean.java      28 Feb 2002 20:22:48 -0000      1.6
  +++ CustomerBMPBean.java      4 Mar 2002 01:20:35 -0000       1.7
  @@ -20,6 +20,7 @@
    * @ejb.interface generate="false" remote-class="test.interfaces.Customer"
    * @ejb.home generate="false" remote-class="test.interfaces.CustomerHome"
    * @ejb.data-object generate="false" class="test.interfaces.CustomerData"
  + * @ejb.dao class="test.dao.CustomerDAO" impl-jndi="dao"
    *
    * @jboss.ejb-ref-jndi ref-name="bank/Account" jndi-name="ejb/bank/Account"
    *
  @@ -29,9 +30,6 @@
   public abstract class CustomerBMPBean
   extends CustomerBean{
   
  -    protected CustomerDAO dao;
  -    protected EntityContext ctx;
  -
       /**
        * @ejb.create-method
        */
  @@ -42,31 +40,18 @@
   
       public void ejbPostCreate(CustomerData detail){}
   
  -    public void setEntityContext(EntityContext ctx){
  -        dao = getDAO();
  -        dao.init();
  -        this.ctx = ctx;
  -    }
  -
  -    /**
  -     * @ejb.dao-method name="dao"
  -     */
  -    protected abstract CustomerDAO getDAO();
  -
       /**
        * @ejb.dao-call name="findAll"
  +     * @dao.call
        */
       public abstract Collection ejbFindAll()
       throws FinderException;
   
       /**
        * @ejb.dao-call name="findByPrimaryKey"
  +     * @dao.call
        */
       public abstract CustomerPK ejbFindByPrimaryKey(CustomerPK pk)
       throws FinderException;
  -
  -    public void ejbLoad(){
  -        dao.load(this);
  -    }
   
   }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to