FileDocCategorySizeDatePackage
CabinBean.javaAPI DocExample936Sun Mar 07 09:44:10 GMT 1999None

CabinBean.java

import java.rmi.RemoteException;

public class CabinBean extends EntityAdapter{

    public int id;
    public String name;
    public int deckLevel;
    public int shipID;
    public int bedCount;

    public int getShipID( ) throws RemoteException{
        return shipID;
    }
    public void setShipID(int ship) throws RemoteException{
        shipID = ship;
    }
    public void ejbCreate(int id){
        this.id = id;
    }
    public void ejbPostCreate(int id){
        // do nothing. Required
    }
    public String getName(){
        return name;
    }
    public void setName(String str){
        name = str;
    }
    public int getBedCount(){
        return bedCount;
    }
    public void setBedCount(int bc){
        bedCount = bc;
    }
    public int getDeckLevel(){
        return deckLevel;
    }
    public void setDeckLevel(int level ){
        deckLevel = level;
    }
}