Package ejava.examples.txhotel.bo
Class Reservation
- java.lang.Object
-
- ejava.examples.txhotel.bo.Reservation
-
- All Implemented Interfaces:
Serializable
public class Reservation extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Reservation()
Reservation(long id, long version, String confirmation, Person person, Date startDate, Date endDate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getConfirmation()
Date
getEndDate()
long
getId()
Person
getPerson()
Date
getStartDate()
long
getVersion()
int
hashCode()
private static boolean
sameDate(Date lhsDate, Date rhsDate)
void
setConfirmation(String confirmation)
void
setEndDate(Date endDate)
private void
setId(long id)
void
setPerson(Person person)
void
setStartDate(Date startDate)
void
setVersion(long version)
String
toString()
-
-
-
Method Detail
-
getId
public long getId()
-
setId
private void setId(long id)
-
getConfirmation
public String getConfirmation()
-
setConfirmation
public void setConfirmation(String confirmation)
-
getPerson
public Person getPerson()
-
setPerson
public void setPerson(Person person)
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getEndDate
public Date getEndDate()
-
setEndDate
public void setEndDate(Date endDate)
-
getStartDate
public Date getStartDate()
-
setStartDate
public void setStartDate(Date startDate)
-
-