Methods Summary |
---|
public void | ejbActivate()
|
public java.lang.Integer | ejbCreate(java.lang.Integer id, java.lang.String name, int capacity, double tonnage)
this.id = id;
this.name = name;
this.capacity = capacity;
this.tonnage = tonnage;
return id;
|
public java.lang.Integer | ejbCreate(int id, java.lang.String name)
this.id = new Integer(id);
this.name = name;
capacity = 0;
tonnage = 0;
return this.id;
|
public void | ejbLoad()
|
public void | ejbPassivate()
|
public void | ejbPostCreate(java.lang.Integer id, java.lang.String name, int capacity, double tonnage)
Integer pk = (Integer)context.getPrimaryKey();
// Do something useful with the primary key.
|
public void | ejbPostCreate(int id, java.lang.String name)
ShipRemote myself = (ShipRemote)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;
|