vo
Class ReservationValue

java.lang.Object
  |
  +--vo.ReservationValue
All Implemented Interfaces:
Serializable

public class ReservationValue
extends Object
implements Serializable

Contains the data of a flight reservation. (This is a value object - the value object design pattern is used to facilitante data transfers between objects and minimize the amount of data transferred.)

Author:
Team Two: Matthew Bass, Vijay Sai, Mannik Bhojwani, Paulo Merson
See Also:
Serialized Form

Constructor Summary
ReservationValue()
           
 
Method Summary
 String getBookingPassenger()
          Returns the bookingPasssenger.
 CreditCardValue getCcVo()
           
 Date getDepartDate()
          Returns the departDate.
 FlightValue getDepartingFlight()
          Returns the departingFlight.
 Date getExpirationDate()
          Returns the ExpirationDate.
 Integer getInvoiceId()
          Returns the invoiceId.
 Vector getPassengers()
          Returns the Vector of String objects with passenger names.
 int getReservationId()
          Returns the reservation ID.
 Date getReturnDate()
          Returns the returnDate.
 FlightValue getReturningFlight()
          Returns the returningFlight.
 boolean isTwoWay()
          Returns the isTwoWay.
 void setBookingPasssenger(String bookingPassenger)
          Sets the bookingPasssenger.
 void setCcVo(CreditCardValue ccVo)
           
 void setDepartDate(Date departDate)
          Sets the departDate.
 void setDepartingFlight(FlightValue departingFlight)
          Sets the departingFlight.
 void setExpirationDate(Date expirationDate)
          Sets the Expiration date of the reservation.
 void setInvoiceId(Integer invoiceId)
          Sets the invoice ID.
 void setIsTwoWay(boolean isTwoWay)
          Sets the isTwoWay.
 void setPassengers(Vector passengers)
          Sets the Vector of String objects with passenger names.
 void setReservationId(int reservationId)
          Sets the reservation ID.
 void setReturnDate(Date returnDate)
          Sets the returnDate.
 void setReturningFlight(FlightValue returningFlight)
          Sets the returningFlight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservationValue

public ReservationValue()
Method Detail

getReservationId

public int getReservationId()
Returns the reservation ID.

getDepartingFlight

public FlightValue getDepartingFlight()
Returns the departingFlight.
Returns:
FlightValue

getReturningFlight

public FlightValue getReturningFlight()
Returns the returningFlight.
Returns:
FlightValue

getDepartDate

public Date getDepartDate()
Returns the departDate.
Returns:
Date

getReturnDate

public Date getReturnDate()
Returns the returnDate.
Returns:
Date

isTwoWay

public boolean isTwoWay()
Returns the isTwoWay.
Returns:
boolean

getBookingPassenger

public String getBookingPassenger()
Returns the bookingPasssenger.
Returns:
String

getCcVo

public CreditCardValue getCcVo()

getPassengers

public Vector getPassengers()
Returns the Vector of String objects with passenger names.

getExpirationDate

public Date getExpirationDate()
Returns the ExpirationDate.

getInvoiceId

public Integer getInvoiceId()
Returns the invoiceId.

setReservationId

public void setReservationId(int reservationId)
Sets the reservation ID.

setDepartingFlight

public void setDepartingFlight(FlightValue departingFlight)
Sets the departingFlight.
Parameters:
departingFlight - The departingFlight to set

setReturningFlight

public void setReturningFlight(FlightValue returningFlight)
Sets the returningFlight.
Parameters:
returningFlight - The returningFlight to set

setDepartDate

public void setDepartDate(Date departDate)
Sets the departDate.
Parameters:
departDate - The departDate to set

setReturnDate

public void setReturnDate(Date returnDate)
Sets the returnDate.
Parameters:
returnDate - The returnDate to set

setIsTwoWay

public void setIsTwoWay(boolean isTwoWay)
Sets the isTwoWay.
Parameters:
isTwoWay - The isTwoWay to set

setBookingPasssenger

public void setBookingPasssenger(String bookingPassenger)
Sets the bookingPasssenger.
Parameters:
String - The bookingPasssenger to set

setCcVo

public void setCcVo(CreditCardValue ccVo)

setPassengers

public void setPassengers(Vector passengers)
Sets the Vector of String objects with passenger names.
Parameters:
passengers - Vecotr of 0 to 6 String objects with passenger names

setExpirationDate

public void setExpirationDate(Date expirationDate)
Sets the Expiration date of the reservation.
Parameters:
Expiration - date or null if tickets were already purchased.

setInvoiceId

public void setInvoiceId(Integer invoiceId)
Sets the invoice ID.
Parameters:
invoiceId - Integer object with invoice ID or null if tickets not purchased yet.


Copyright © 2003 Team Two.