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 booleanequals(Object obj)StringgetConfirmation()DategetEndDate()longgetId()PersongetPerson()DategetStartDate()longgetVersion()inthashCode()private static booleansameDate(Date lhsDate, Date rhsDate)voidsetConfirmation(String confirmation)voidsetEndDate(Date endDate)private voidsetId(long id)voidsetPerson(Person person)voidsetStartDate(Date startDate)voidsetVersion(long version)StringtoString()
-
-
-
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)
-
-