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:import java.util.Collection;
   8:
   9:public abstract class TrackBean
  10:    implements EntityBean {
  11:  EntityContext entityContext;
  12:  public Integer ejbCreate(Integer duration, String title) throws CreateException {
  13:
  14:    setTitle(title);
  15:
  16:    setDuration(duration);
  17:    return null;
  18:  }
  19:
  20:  public void ejbPostCreate(Integer duration, String title) throws CreateException {
  21:  }
  22:
  23:  public void ejbRemove() throws RemoveException {
  24:  }
  25:
  26:  public abstract void setId(Integer id);
  27:
  28:  public abstract Integer getId();
  29:
  30:  public void ejbLoad() {
  31:  }
  32:
  33:  public void ejbStore() {
  34:  }
  35:
  36:  public void ejbActivate() {
  37:  }
  38:
  39:  public void ejbPassivate() {
  40:  }
  41:
  42:  public void unsetEntityContext() {
  43:    this.entityContext = null;
  44:  }
  45:
  46:  public void setEntityContext(EntityContext entityContext) {
  47:    this.entityContext = entityContext;
  48:  }
  49:
  50:  public abstract void setArtist(Collection artist);
  51:
  52:  public abstract void setDuration(Integer duration);
  53:
  54:  public abstract void setTitle(String title);
  55:
  56:  public abstract String getTitle();
  57:
  58:  public abstract Integer getDuration();
  59:
  60:  public abstract Collection getArtist();
  61:}