public class Booking extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
confirmation |
private Set<String> |
hotelConfirmations |
private Set<Reservation> |
hotelReservations |
private long |
id |
private long |
version |
Constructor and Description |
---|
Booking() |
Booking(long id,
long version,
String confirmation) |
Modifier and Type | Method and Description |
---|---|
void |
addHotelReservation(Reservation reservation) |
boolean |
equals(Object obj) |
String |
getConfirmation() |
Set<String> |
getHotelConfirmations() |
private byte[] |
getHotelConfirmationsAsBytes() |
Set<Reservation> |
getHotelReservations() |
long |
getId() |
long |
getVersion() |
int |
hashCode() |
void |
setConfirmation(String confirmation) |
private void |
setHotelConfirmations(Set<String> hotelConfirmations) |
private void |
setHotelConfirmationsAsBytes(byte[] data) |
private void |
setHotelReservations(Set<Reservation> hotelReservations) |
private void |
setId(long id) |
void |
setVersion(long version) |
String |
toString() |
private long id
private long version
private String confirmation
private Set<Reservation> hotelReservations
public Booking()
public Booking(long id, long version, String confirmation)
public long getId()
private void setId(long id)
public String getConfirmation()
public void setConfirmation(String confirmation)
public long getVersion()
public void setVersion(long version)
public Set<Reservation> getHotelReservations()
private void setHotelReservations(Set<Reservation> hotelReservations)
public void addHotelReservation(Reservation reservation)
private byte[] getHotelConfirmationsAsBytes() throws IOException
IOException
private void setHotelConfirmationsAsBytes(byte[] data) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.