Methods Summary |
---|
public void | ejbActivate()
|
public ShipPK | ejbCreate(int id, java.lang.String name, int capacity, double tonnage)
this.id = id;
this.name = name;
this.capacity = capacity;
this.tonnage = tonnage;
return null;
|
public ShipPK | ejbCreate(int id, java.lang.String name)
this.id = id;
this.name = name;
capacity = 0;
tonnage = 0;
return null;
|
public void | ejbLoad()
|
public void | ejbPassivate()
|
public void | ejbPostCreate(int id, java.lang.String name, int capacity, double tonnage)
ShipPK pk = (ShipPK)context.getPrimaryKey();
// Do something useful with the primary key.
|
public void | ejbPostCreate(int id, java.lang.String name)
Ship myself = (Ship)context.getEJBObject();
// Do something useful with the EJBObject reference.
|
public void | ejbRemove()
|
public void | ejbStore()
|
public int | getCapacity()
return capacity;
|
public java.lang.String | getName()
return name;
|
public double | getTonnage()
return tonnage;
|
public void | setCapacity(int cap)
capacity = cap;
|
public void | setEntityContext(javax.ejb.EntityContext ctx)
context = ctx;
|
public void | setName(java.lang.String n)
name = n;
|
public void | setTonnage(double tons)
tonnage = tons;
|
public void | unsetEntityContext()
context = null;
|