FileDocCategorySizeDatePackage
TicketDO.javaAPI DocExample1438Sun Mar 10 17:42:16 GMT 2002com.titan.travelagent

TicketDO

public class TicketDO extends Object implements Serializable

(Omit source code)

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();
        System.out.println("Got customer Name");

		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;
        System.out.println("Finished the description of the Ticket");
		customerID = (Integer)customer.getPrimaryKey();
		cruiseID = (Integer)cruise.getPrimaryKey();
		cabinID = (Integer)cabin.getPrimaryKey();
		price = amount;
	
Methods Summary
public java.lang.StringtoString()

		return description;