// Copyright © 2002 by Apple Computer, Inc., All Rights Reserved.
//
// You may incorporate this Apple sample code into your own code
// without restriction. This Apple sample code has been provided "AS IS"
// and the responsibility for its operation is yours. You may redistribute
// this code, but you are not permitted to redistribute it as
// "Apple sample code" after having made changes.
shell> cat HelloEntityEJB.java
import java.rmi.RemoteException;
import javax.ejb.*;
public class HelloEntityEJB implements EntityBean {
transient private EntityContext ctx;
public String name;
public String email;
public String ejbCreate(String name) {
this.name = name;
return null;
}
public void ejbPostCreate(String name) {
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public void setEntityContext(EntityContext ctx) {
this.ctx = ctx;
}
public void unsetEntityContext() {
ctx = null;
}
public void ejbActivate() {
}
public void ejbPassivate() {
}
public void ejbLoad() {
}
public void ejbStore() {
}
public void ejbRemove() {
}
}