public static class WeirdParent.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
WeirdParent.builder() instead of private constructor to create new builder. |
protected |
Builder(WeirdParent pObject)
Use
WeirdParent.builder(WeirdParent) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
WeirdParent |
build()
Method creates a new instance of class WeirdParent.
|
WeirdParent |
buildValidated()
Method creates a new validated instance of class WeirdParent.
|
WeirdParent.Builder |
setComplexBooking(ComplexBookingID pComplexBooking)
Method sets the association "complexBooking".
|
WeirdParent.Builder |
setComplexBookings(Set<ComplexBookingID> pComplexBookings)
Method sets the association "complexBookings".
|
WeirdParent.Builder |
setSomeProperty(String pSomeProperty)
Method sets the attribute "someProperty".
|
protected Builder()
WeirdParent.builder() instead of private constructor to create new builder.protected Builder(WeirdParent pObject)
WeirdParent.builder(WeirdParent) instead of private constructor to create new builder.public WeirdParent.Builder setSomeProperty(String pSomeProperty)
pSomeProperty - Value to which the attribute "someProperty" should be set.public WeirdParent.Builder setComplexBooking(ComplexBookingID pComplexBooking)
pComplexBooking - ComplexBookingID to which the association "complexBooking" should be set.public WeirdParent.Builder setComplexBookings(Set<ComplexBookingID> pComplexBookings)
pComplexBookings - Collection with objects to which the association should be set.public WeirdParent build()
public WeirdParent buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.