package org.jboss.test.readahead.ejb;
import javax.ejb.EntityBean;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import javax.ejb.EntityContext;
public class CMPFindTestEntity implements EntityBean {
org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(getClass());
EntityContext entityContext;
public String key;
public String name;
public String rank;
public String serialNumber;
private boolean modified;
public String ejbCreate(String key) throws CreateException {
this.key = key;
return key;
}
public boolean isModified() {
return modified;
}
public void ejbPostCreate(String key) throws CreateException {
}
public void ejbRemove() throws RemoveException {
}
public void ejbActivate() {
}
public void ejbPassivate() {
}
public void ejbLoad() {
modified = false;
}
public void ejbStore() {
modified = false;
}
public void setEntityContext(EntityContext entityContext) {
this.entityContext = entityContext;
}
public void unsetEntityContext() {
entityContext = null;
}
public String getKey() {
return key;
}
public void setName(String newName) {
name = newName;
}
public String getName() {
return name;
}
public void setRank(String newRank) {
rank = newRank;
modified = true;
}
public String getRank() {
return rank;
}
public void setSerialNumber(String newSerialNumber) {
serialNumber = newSerialNumber;
modified = true;
}
public String getSerialNumber() {
return serialNumber;
}
}