Entity Bean example
package tom.ejb.entity.server;
public class ExampleBean implements EntityBean
private transient EntityContext ctx;
//notice: no finder method -- generated at deployment time by container provider
//can have multiple create methods
public void ejbCreate () throws Exception {
public boolean doSomething () {
//required methods for EntityBean interface
public void ejbActivate() throws Exception {
public void ejbDestroy() throws Exception {
public void ejbPassivate() throws Exception {
public void ejbLoad() throws Exception {
public void ejbStore() throws Exception {
public void setEntityContext (EntityContext ctx) throws Exception {
public void unsetEntityContext () throws Exception {