public abstract static class PersonBase.BuilderBase extends Partner.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderBase()
Use
Person.builder() instead of protected constructor to create new builder. |
protected |
BuilderBase(PersonBase pObject)
Use
Person.builder(Person) instead of protected constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Person |
build()
Method creates a new instance of class Person.
|
Person |
buildValidated()
Method creates a new validated instance of class Person.
|
PersonBase.BuilderBase |
setFirstName(String pFirstName)
Method sets the attribute "firstName".
|
PersonBase.BuilderBase |
setID(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
Method sets the identifier for the object created using the builder.
|
PersonBase.BuilderBase |
setPostalAddresses(List<PostalAddress> pPostalAddresses)
Method sets the association "postalAddresses".
|
PersonBase.BuilderBase |
setSurname(String pSurname)
Method sets the attribute "surname".
|
protected BuilderBase()
Person.builder() instead of protected constructor to create new builder.protected BuilderBase(PersonBase pObject)
Person.builder(Person) instead of protected constructor to create new builder.public PersonBase.BuilderBase setID(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
setID in class Partner.Builderpublic PersonBase.BuilderBase setPostalAddresses(List<PostalAddress> pPostalAddresses)
setPostalAddresses in class Partner.BuilderpPostalAddresses - Collection with objects to which the association should be set.public PersonBase.BuilderBase setSurname(String pSurname)
pSurname - Value to which the attribute "surname" should be set.public PersonBase.BuilderBase setFirstName(String pFirstName)
pFirstName - Value to which the attribute "firstName" should be set.public Person build()
build in class Partner.Builderpublic Person buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class Partner.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.