FileDocCategorySizeDatePackage
TicketDO.javaAPI DocExample1548Thu May 16 20:54:50 BST 2002com.titan.travelagent

TicketDO

public class TicketDO extends Object implements Serializable

Fields Summary
public Integer
customerID
public Integer
cruiseID
public Integer
cabinID
public double
price
public String
description
Constructors Summary
public TicketDO(com.titan.customer.CustomerRemote customer, com.titan.cruise.CruiseLocal cruise, com.titan.cabin.CabinLocal cabin, double amount)

      
      Name custname = customer.getName ();
      description = custname.getFirstName ()+
                     " " + custname.getLastName () +
                     " has been booked for the "
                     + cruise.getName () +
                     " cruise on ship " +
                     cruise.getShip ().getName () + ".\n" +
                     " Your accommodations include " +
                     cabin.getName () +
                     " a " + cabin.getBedCount () +
                     " bed cabin on deck level " + cabin.getDeckLevel () +
                     ".\n Total charge = " + amount;
      customerID = (Integer)customer.getPrimaryKey ();
      cruiseID = (Integer)cruise.getPrimaryKey ();
      cabinID = (Integer)cabin.getPrimaryKey ();
      price = amount;
   
Methods Summary
public java.lang.StringtoString()

      return description;