package org.jboss.test.cmp2.lob;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import java.util.Map;
import java.util.List;
import java.util.Set;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.HashSet;
public abstract class LOBBean implements EntityBean
{
private EntityContext mEntityContext;
public abstract Integer getId();
public abstract void setId(Integer id);
public abstract String getBigString();
public abstract void setBigString(String s);
public abstract byte[] getBinaryData();
public abstract void setBinaryData(byte[] data);
public abstract Map getMapField();
public abstract void setMapField(Map map);
public abstract List getListField();
public abstract void setListField(List list);
public abstract Set getSetField();
public abstract void setSetField(Set set);
public abstract ValueHolder getValueHolder();
public abstract void setValueHolder(ValueHolder valueHolder);
public abstract ValueHolder getCleanGetValueHolder();
public abstract void setCleanGetValueHolder(ValueHolder valueHolder);
public abstract ValueHolder getStateFactoryValueHolder();
public abstract void setStateFactoryValueHolder(ValueHolder valueHolder);
public Integer ejbCreate(Integer id) throws CreateException
{
setId(id);
setMapField(new HashMap());
setListField(new ArrayList());
setSetField(new HashSet());
setValueHolder(new ValueHolder(null));
setCleanGetValueHolder(new ValueHolder(null));
setStateFactoryValueHolder(new ValueHolder(null));
return null;
}
public void ejbPostCreate(Integer id) {}
public void ejbActivate() {}
public void ejbLoad() {}
public void ejbPassivate() {}
public void ejbRemove() throws RemoveException {}
public void ejbStore() {}
public void setEntityContext(EntityContext ctx)
{
mEntityContext = ctx;
}
public void unsetEntityContext()
{
mEntityContext = null;
}
}