FileDocCategorySizeDatePackage
ReservationBean.javaAPI DocExample2011Sun Aug 05 15:51:42 BST 2001com.titan.reservation

ReservationBean

public class ReservationBean extends Object implements javax.ejb.EntityBean

Fields Summary
public int
customerID
public int
cruiseID
public int
cabinID
public double
price
public Date
date
public javax.ejb.EntityContext
ejbContext
Constructors Summary
Methods Summary
public voidejbActivate()

        // not implemented
    
public ReservationPKejbCreate(CustomerRemote customer, CruiseRemote cruise, CabinRemote cabin, double price, java.sql.Date travelDate)

        try {
            this.customerID = ((Integer)customer.getPrimaryKey()).intValue();
            this.cruiseID = ((Integer)cruise.getPrimaryKey()).intValue();
            this.cabinID = ((Integer)cabin.getPrimaryKey()).intValue();
            this.price = price;
		this.date = travelDate;
        }
        catch (RemoteException re) {
            throw new EJBException(re);
        }
        return null;
    
public voidejbLoad()

        // not implemented
    
public voidejbPassivate()

        // not implemented
    
public voidejbPostCreate(CustomerRemote customer, CruiseRemote cruise, CabinRemote cabin, double price, java.sql.Date travelDate)

        // do nothing;
    
public voidejbRemove()

        // not implemented
    
public voidejbStore()

        // not implemented
    
public intgetCabinID()

        return cabinID;
    
public intgetCruiseID()

        return cruiseID;
    
public intgetCustomerID()

        return customerID;
    
public java.sql.DategetDate()

        return date;
    
public doublegetPrice()

        return price;
    
public voidsetEntityContext(javax.ejb.EntityContext ctx)

	ejbContext = ctx;
    
public voidunsetEntityContext()

	ejbContext = null;