Package io.extact.rms.application.domain
Class Reservation
java.lang.Object
io.extact.rms.application.domain.Reservation
- All Implemented Interfaces:
BeforeAfterDateTime.BeforeAfterDateTimeValidatable,IdAccessable,Transformable
@Entity
@BeforeAfterDateTime(from="\u5229\u7528\u958b\u59cb\u65e5\u6642",
to="\u5229\u7528\u7d42\u4e86\u65e5\u6642")
public class Reservation
extends Object
implements BeforeAfterDateTime.BeforeAfterDateTimeValidatable, Transformable, IdAccessable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Reservationof(Integer reservationId, LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) static ReservationofTransient(LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) voidsetEndDateTime(LocalDateTime endDateTime) voidsetStartDateTime(LocalDateTime startDateTime) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.extact.rms.application.domain.constraint.BeforeAfterDateTime.BeforeAfterDateTimeValidatable
getEndDateTime, getStartDateTimeMethods inherited from interface io.extact.rms.application.domain.IdAccessable
getId, isSameId, setIdMethods inherited from interface io.extact.rms.application.domain.Transformable
transform
-
Constructor Details
-
Reservation
public Reservation()
-
-
Method Details
-
of
public static Reservation of(Integer reservationId, LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) -
ofTransient
public static Reservation ofTransient(LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) -
setStartDateTime
-
setEndDateTime
-
getReservePeriod
-
toString
-