| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Booking.builder() instead of private constructor to create new builder. |
protected |
Builder(Booking pObject)
Use
Booking.builder(Booking) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Booking |
build()
Method creates a new instance of class Booking.
|
Booking |
buildValidated()
Method creates a new validated instance of class Booking.
|
Booking.Builder |
setBookingID(BookingID pBookingID)
Method sets association
bookingID. |
protected Builder()
Booking.builder() instead of private constructor to create new builder.protected Builder(Booking pObject)
Booking.builder(Booking) instead of private constructor to create new builder.public Booking.Builder setBookingID(BookingID pBookingID)
bookingID.pBookingID - Value to which bookingID should be set.Booking.Builder Instance of this builder to support chaining setters. Method never returns null.public Booking build()
public Booking buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.