FileDocCategorySizeDatePackage
Reservation.javaAPI DocExample1398Sun Apr 24 09:01:16 BST 2005com.springbook

Reservation

public class Reservation extends Object

Fields Summary
private int
reservationId
private Date
reservationDate
private Bike
bike
private Customer
customer
Constructors Summary
public Reservation()


    
public Reservation(int id, Bike bike, Customer customer, Date date)

        this.reservationId = id;
        this.bike = bike;
        this.customer = customer;
        this.reservationDate = date;
    
Methods Summary
public BikegetBike()

        return bike;
    
public CustomergetCustomer()

        return customer;
    
public java.util.DategetReservationDate()

        return reservationDate;
    
public intgetReservationId()

        return reservationId;
    
public voidsetBike(Bike bike)

        this.bike = bike;
    
public voidsetCustomer(Customer customer)

        this.customer = customer;
    
public voidsetReservationDate(java.util.Date reservationDate)

        this.reservationDate = reservationDate;
    
public voidsetReservationId(int reservationId)

        this.reservationId = reservationId;
    
public java.lang.StringtoString()

        return "Reservation : " +
                "reservationId -- " + reservationId +
                "\n: reservationDate -- " + reservationDate +
                "\n: bike -- " + bike +
                "\n: customer -- " + customer +
                ".\n";