Package ejava.examples.txagent.bo
Class Booking
- java.lang.Object
-
- ejava.examples.txagent.bo.Booking
-
- All Implemented Interfaces:
Serializable
public class Booking extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
confirmation
private Set<String>
hotelConfirmations
private Set<Reservation>
hotelReservations
private long
id
private long
version
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
id
private long id
-
version
private long version
-
confirmation
private String confirmation
-
hotelReservations
private Set<Reservation> hotelReservations
-
-
Constructor Detail
-
Booking
public Booking()
-
Booking
public Booking(long id, long version, String confirmation)
-
-
Method Detail
-
getId
public long getId()
-
setId
private void setId(long id)
-
getConfirmation
public String getConfirmation()
-
setConfirmation
public void setConfirmation(String confirmation)
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getHotelReservations
public Set<Reservation> getHotelReservations()
-
setHotelReservations
private void setHotelReservations(Set<Reservation> hotelReservations)
-
addHotelReservation
public void addHotelReservation(Reservation reservation)
-
getHotelConfirmationsAsBytes
private byte[] getHotelConfirmationsAsBytes() throws IOException
- Throws:
IOException
-
setHotelConfirmationsAsBytes
private void setHotelConfirmationsAsBytes(byte[] data) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-