FileDocCategorySizeDatePackage
CruiseBean.javaAPI DocExample1506Mon Nov 01 06:53:06 GMT 1999com.titan.cruise

CruiseBean.java

package com.titan.cruise;

import javax.ejb.EntityContext;
import com.titan.ship.Ship;
import com.titan.ship.ShipPK;
import com.titan.ship.ShipHome;
import java.rmi.RemoteException;
import javax.ejb.FinderException;
import javax.naming.Context;
import java.util.Vector;
import java.util.Properties;

public class CruiseBean implements javax.ejb.EntityBean {

    public int id;
    public String name;
    public int shipID;

    public javax.ejb.EntityContext ejbContext;

    public void ejbCreate(int id, String name, int shipID){
        this.id = id;
        this.name = name;
        this.shipID = shipID;
    }
    public void ejbPostCreate(int id, String name, int shipID){
        // do nothing. Required
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public int getShipID( ){
        return shipID;
    }
    public void setShipID(int shipID){
        this.shipID = shipID;
    }
	public void setEntityContext(EntityContext ctx){
	     ejbContext = ctx;
    }
    public void unsetEntityContext(){
         ejbContext = null;
    }
    public void ejbActivate(){
        // not implmented
    }
    public void ejbPassivate(){
        // not implmented
    }
    public void ejbLoad(){
        // not implmented
    }
    public void ejbStore(){
        // not implmented
    }
    public void ejbRemove(){
        // not implmented
    }


}