package ejbtest;

import javax.ejb.*;

/**
 * @ejb:bean
 *    name="EntityA"
 *    jndi-name="test/EntityA"
 *    local-jndi-name="test/EntityA"
 *    type="CMP"
 *    cmp-version="2.x"
 *    view-type="both"
 *    unchecked="true"
 *    schema="EntityA"
 *
 * @ejb:transaction type="Required"
 *
 */
public abstract class EntityABean implements javax.ejb.EntityBean {

	/**
     * Create EntityA.
     * @ejb:create-method
     */
	public EntityAPK ejbCreate(int id)
        throws CreateException {

        setId(id);

        return null;
	}


	public void ejbPostCreate(int id) throws CreateException {}

	/**
	 * Primary Key setter, don't call after the create method.
	 * @param newValue The new value of the Id
	 */
	 public abstract void setId(int newValue);

	/**
	 * @return Id
	 * @ejb:interface-method view-type="both"
	 * @ejb:persistent-field
	 * @ejb:pk-field
	 */
	public abstract int getId();

	public void setEntityContext(javax.ejb.EntityContext entityContext) {}

	public void unsetEntityContext() {}

	public void ejbLoad() {}

	public void ejbActivate() {}

	public void ejbPassivate() {}

	public void ejbRemove() {}

	public void ejbStore() {}
}
