package org.jboss.test.cmp2.ejbselect;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
public abstract class BBean implements EntityBean
{
public abstract String getId();
public abstract void setId(String id);
public abstract String getName();
public abstract void setName(String name);
public abstract boolean getBool();
public abstract void setBool(boolean bool);
public abstract long getLongField();
public abstract void setLongField(long value);
public abstract ALocal getA();
public abstract void setA(ALocal a);
public abstract Collection ejbSelectTrue() throws FinderException;
public abstract Collection ejbSelectFalse() throws FinderException;
public abstract Collection ejbSelectDynamic(String ql, Object[] params) throws FinderException;
public Collection getTrue() throws FinderException
{
return ejbSelectTrue();
}
public Collection getFalse() throws FinderException
{
return ejbSelectFalse();
}
public Collection ejbHomeSelectDynamic(String ql, Object[] params) throws FinderException
{
return ejbSelectDynamic(ql, params);
}
public String ejbCreate(String id, String name, boolean bool)
throws CreateException
{
setId(id);
setName(name);
setBool(bool);
return null;
}
public void ejbPostCreate(String id, String name, boolean bool) {}
public void setEntityContext(EntityContext context) {}
public void unsetEntityContext() {}
public void ejbRemove() throws RemoveException {}
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbLoad() {}
public void ejbStore() {}
}