1:package is346;
   2:
   3:import javax.ejb.EntityBean;
   4:import javax.ejb.EntityContext;
   5:import javax.ejb.CreateException;
   6:import javax.ejb.RemoveException;
   7:
   8:public abstract class ArtistBean
   9:    implements EntityBean {
  10:  EntityContext entityContext;
  11:  public Integer ejbCreate(String name) throws CreateException {
  12:
  13:    setName(name);
  14:    return null;
  15:  }
  16:
  17:  public void ejbPostCreate(String name) throws CreateException {
  18:  }
  19:
  20:  public void ejbRemove() throws RemoveException {
  21:  }
  22:
  23:  public abstract void setId(Integer id);
  24:
  25:  public abstract Integer getId();
  26:
  27:  public void ejbLoad() {
  28:  }
  29:
  30:  public void ejbStore() {
  31:  }
  32:
  33:  public void ejbActivate() {
  34:  }
  35:
  36:  public void ejbPassivate() {
  37:  }
  38:
  39:  public void unsetEntityContext() {
  40:    this.entityContext = null;
  41:  }
  42:
  43:  public void setEntityContext(EntityContext entityContext) {
  44:    this.entityContext = entityContext;
  45:  }
  46:
  47:  public abstract void setName(String name);
  48:
  49:  public abstract String getName();
  50:}