Java Reference
In-Depth Information
The EJB 2.0 entity
The EJB 2.0 entity class being migrated to EJB 3.0 in this chapter is as shown next:
import javax.ejb.*;
abstract public class CatalogBean implements EntityBean {
private EntityContext ctx;
public CatalogBean() {
public void setEntityContext(EntityContext ctx) {
this.ctx = ctx;
public void unsetEntityContext() {
this.ctx = null;
abstract public String getCatalogId();
abstract public void setCatalogId(String catalogId);
abstract public String getJournal();
abstract public void setJournal(java.lang.String journal);
abstract public String getPublisher();
abstract public void setPublisher(String publisher);
public void ejbActivate() {
public void ejbPassivate() {
public void ejbLoad() {
public void ejbStore() {
public void ejbRemove() throws RemoveException {
public String ejbCreate(String catalogId, String journal,
String publisher)
throws CreateException {
return null;
public void ejbPostCreate(String catalogId, String journal,
String publisher) {
Search WWH ::

Custom Search