/*
 * JBoss, the OpenSource J2EE webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 *
 */

package org.jboss.test.jmx.ejb;


import java.rmi.RemoteException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;
/**
 * EntityB.java
 *
 *
 * Created: Wed Mar  6 20:08:11 2002
 *
 * @author <a href="mailto:d_jencks@users.sourceforge.net">David Jencks</a>
 * @version
 *
 *
 * @ejb:bean   name="EntityB"
 *             jndi-name="EntityB"
 *             view-type="remote"
 *             type="CMP"
 *             cmp-version="2.x"
 *             primkey-field="id"
 * @ejb:finder signature="java.util.Collection findAll()"
 *             unchecked="yes"
 * @ejb:pk class="java.lang.Integer"
 * @ejb:resource-ref res-name="datasource"
 *                   res-type="javax.sql.DataSource"
 *                   res-auth="Container"
 * @jboss:resource-ref res-ref-name="datasource"
 *                   resource-name="TestDS" 
 * @jboss:resource-manager res-man-name="TestDS"
 *                   res-man-jndi-name="java:/XmlDeployTestDS" 
 * @jboss:datasource name="java:/XmlDeployTestDS"
 *                   mapping="Hypersonic SQL"
 */

public abstract class EntityBBean implements EntityBean  
{
   public EntityBBean ()
   {
      
   }

   
   
   /**
    * Abstract cmp2 field get-set pair for field id
    * Get the value of id
    * @return value of id
    *
    * @ejb:interface-method
    * @ejb:persistent-field
    */
   public abstract Integer getId();
   
   /**
    * Set the value of id
    * @param id  Value to assign to id
    *
    * @ejb:interface-method view-type="remote"
    */
   public abstract void setId(Integer id);
   
   
   
   /**
    * Abstract cmp2 field get-set pair for field value
    * Get the value of value
    * @return value of value
    *
    * @ejb:interface-method
    * @ejb:persistent-field
    */
   public abstract String getValue();
   
   /**
    * Set the value of value
    * @param value  Value to assign to value
    *
    * @ejb:interface-method view-type="remote"
    */
   public abstract void setValue(String value);
   

   
   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, RemoveException 
   {
   }
   
   public void setEntityContext(EntityContext ctx) throws RemoteException 
   {
   }
   
   public void unsetEntityContext() throws RemoteException 
   {
   }
   
}// EntityB