FileDocCategorySizeDatePackage
CabinBean.javaAPI DocExample1404Fri Mar 05 06:24:32 GMT 1999com.titan.cabin

CabinBean.java

package com.titan.cabin;

import javax.ejb.EntityContext;

public class CabinBean implements javax.ejb.EntityBean {

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


    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 getShip(){
        return ship;
    }
    public void setShip(int sp) {
        ship = sp;
    }
    public int getBedCount(){
        return bedCount;
    }
    public void setBedCount(int bc){
        bedCount = bc;
    }
    public int getDeckLevel(){
        return deckLevel;
    }
    public void setDeckLevel(int level ){
        deckLevel = level;
    }

    public void setEntityContext(EntityContext ctx){
	  // not implemented
    }
    public void unsetEntityContext(){
         // not implemented
    }
    public void ejbActivate(){
        // not implemented
    }
    public void ejbPassivate(){
        // not implemented
    }
    public void ejbLoad(){
        // not implemented
    }
    public void ejbStore(){
        // not implemented
    }
    public void ejbRemove(){
        // not implemented
    }
}