package org.jboss.test.cmp2.ejbselect;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import java.util.Collection;
public abstract class ABean implements EntityBean
{
private EntityContext ctx;
public abstract String getId();
public abstract void setId(String id);
public abstract int getIntField();
public abstract void setIntField(int value);
public abstract Collection getBs();
public abstract void setBs(Collection Bs);
public abstract Collection ejbSelectSomeBs(ALocal a) throws FinderException;
public abstract Collection ejbSelectAWithBs() throws FinderException;
public abstract Collection ejbSelectSomeBsDeclaredSQL(ALocal a) throws FinderException;
public Collection getSomeBs() throws FinderException
{
return ejbSelectSomeBs((ALocal)ctx.getEJBLocalObject());
}
public Collection getSomeBsDeclaredSQL() throws FinderException
{
return ejbSelectSomeBsDeclaredSQL((ALocal)ctx.getEJBLocalObject());
}
public Collection getAWithBs() throws FinderException
{
return ejbSelectAWithBs();
}
public Collection ejbHomeGetSomeBs(ALocal a) throws FinderException
{
return ejbSelectSomeBs(a);
}
public Collection ejbHomeGetSomeBsDeclaredSQL(ALocal a) throws FinderException
{
return ejbSelectSomeBsDeclaredSQL(a);
}
public String ejbCreate(String id) throws CreateException
{
setId(id);
return null;
}
public void ejbPostCreate(String id) {}
public void setEntityContext(EntityContext ctx)
{
this.ctx = ctx;
}
public void unsetEntityContext()
{
this.ctx = null;
}
public void ejbRemove() throws RemoveException {}
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbLoad() {}
public void ejbStore() {}
}