package org.jboss.test.cmp2.optimisticlock.ejb;
import javax.ejb.EntityBean;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import javax.ejb.EntityContext;
public abstract class CmpEntityBean
implements EntityBean
{
private EntityContext ctx;
public abstract Integer getId();
public abstract void setId(Integer id);
public abstract String getStringGroup1();
public abstract void setStringGroup1(String stringField);
public abstract Integer getIntegerGroup1();
public abstract void setIntegerGroup1(Integer value);
public abstract Double getDoubleGroup1();
public abstract void setDoubleGroup1(Double value);
public abstract String getStringGroup2();
public abstract void setStringGroup2(String stringField);
public abstract Integer getIntegerGroup2();
public abstract void setIntegerGroup2(Integer value);
public abstract Double getDoubleGroup2();
public abstract void setDoubleGroup2(Double value);
public abstract Long getVersionField();
public abstract void setVersionField(Long value);
public Integer ejbCreate(Integer id,
String stringGroup1,
Integer integerGroup1,
Double doubleGroup1,
String stringGroup2,
Integer integerGroup2,
Double doubleGroup2)
throws CreateException
{
setId(id);
setStringGroup1(stringGroup1);
setIntegerGroup1(integerGroup1);
setDoubleGroup1(doubleGroup1);
setStringGroup2(stringGroup2);
setIntegerGroup2(integerGroup2);
setDoubleGroup2(doubleGroup2);
return null;
}
public void ejbPostCreate(Integer id,
String stringGroup1,
Integer integerGroup1,
Double doubleGroup1,
String stringGroup2,
Integer integerGroup2,
Double doubleGroup2) {}
public void ejbRemove() throws RemoveException
{}
public void setEntityContext(EntityContext ctx)
{
this.ctx = ctx;
}
public void unsetEntityContext()
{
this.ctx = null;
}
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbLoad() {}
public void ejbStore() {}
}