public static class WeirdBooking.Builder extends WeirdParent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
WeirdBooking.builder() instead of private constructor to create new builder. |
protected |
Builder(WeirdBooking pObject)
Use
WeirdBooking.builder(WeirdBooking) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
WeirdBooking |
build()
Method creates a new instance of class WeirdBooking.
|
WeirdBooking |
buildValidated()
Method creates a new validated instance of class WeirdBooking.
|
WeirdBooking.Builder |
setAdditionalBookings(List<ComplexBookingID> pAdditionalBookings)
Method sets the association "additionalBookings". additional bookings
|
WeirdBooking.Builder |
setBooking(ComplexBookingID pBooking)
Method sets the association "booking".
|
WeirdBooking.Builder |
setChildProperty(int pChildProperty)
Method sets the attribute "childProperty".
|
WeirdBooking.Builder |
setComplexBooking(ComplexBookingID pComplexBooking)
Method sets the association "complexBooking".
|
WeirdBooking.Builder |
setComplexBookings(Set<ComplexBookingID> pComplexBookings)
Method sets the association "complexBookings".
|
WeirdBooking.Builder |
setRealBooking(Booking pRealBooking)
Method sets the association "realBooking". the real booking
|
WeirdBooking.Builder |
setSomeProperty(String pSomeProperty)
Method sets the attribute "someProperty".
|
WeirdBooking.Builder |
setVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)
Method sets the association "versionedObjectSoftLink". soft link 2nd line 3rd line
|
protected Builder()
WeirdBooking.builder() instead of private constructor to create new builder.protected Builder(WeirdBooking pObject)
WeirdBooking.builder(WeirdBooking) instead of private constructor to create new builder.public WeirdBooking.Builder setSomeProperty(String pSomeProperty)
setSomeProperty in class WeirdParent.BuilderpSomeProperty - Value to which the attribute "someProperty" should be set.public WeirdBooking.Builder setComplexBooking(ComplexBookingID pComplexBooking)
setComplexBooking in class WeirdParent.BuilderpComplexBooking - ComplexBookingID to which the association "complexBooking" should be set.public WeirdBooking.Builder setComplexBookings(Set<ComplexBookingID> pComplexBookings)
setComplexBookings in class WeirdParent.BuilderpComplexBookings - Collection with objects to which the association should be set.public WeirdBooking.Builder setBooking(ComplexBookingID pBooking)
pBooking - ComplexBookingID to which the association "booking" should be set.public WeirdBooking.Builder setAdditionalBookings(List<ComplexBookingID> pAdditionalBookings)
pAdditionalBookings - Collection with objects to which the association should be set.public WeirdBooking.Builder setVersionedObjectSoftLink(VersionedObjectSoftLink pVersionedObjectSoftLink)
pVersionedObjectSoftLink - VersionedObjectSoftLink to which the association "versionedObjectSoftLink" should
be set.public WeirdBooking.Builder setChildProperty(int pChildProperty)
pChildProperty - Value to which the attribute "childProperty" should be set.public WeirdBooking.Builder setRealBooking(Booking pRealBooking)
pRealBooking - Booking to which the association "realBooking" should be set.public WeirdBooking build()
build in class WeirdParent.Builderpublic WeirdBooking buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class WeirdParent.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.