FileDocCategorySizeDatePackage
ShipBean.javaAPI DocExample1762Sat Mar 06 08:33:20 GMT 1999com.titan.ship

ShipBean

public class ShipBean extends Object implements javax.ejb.EntityBean

Fields Summary
public int
id
public String
name
public int
capacity
public double
tonnage
public javax.ejb.EntityContext
context
Constructors Summary
Methods Summary
public voidejbActivate()

 
public voidejbCreate(int id, java.lang.String name, int capacity, double tonnage)

        this.id = id;
        this.name = name;
        this.capacity = capacity;
        this.tonnage = tonnage;
    
public voidejbCreate(int id, java.lang.String name)

        this.id = id;
        this.name = name;
        capacity = 0;
        tonnage = 0;
    
public voidejbLoad()

 
public voidejbPassivate()

 
public voidejbPostCreate(int id, java.lang.String name, int capacity, double tonnage)

        ShipPK pk = (ShipPK)context.getPrimaryKey();
        // do something useful with the primary key
    
public voidejbPostCreate(int id, java.lang.String name)

        Ship myself = (Ship)context.getEJBObject( );
        // do something useful with the EJBObject reference
    
public voidejbRemove()

 
public voidejbStore()

 
public intgetCapacity()

        return capacity;
    
public java.lang.StringgetName()

        return name;
    
public doublegetTonnage()

        return tonnage;
    
public voidsetCapacity(int cap)

        capacity = cap;
    
public voidsetEntityContext(javax.ejb.EntityContext ctx)

        context = ctx;
    
public voidsetName(java.lang.String n)

        name = n;
    
public voidsetTonnage(double tons)

        tonnage = tons;
    
public voidunsetEntityContext()

        context = null;