public abstract static class CompositeIDBase.BuilderBase extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderBase()
Use
CompositeID.builder() instead of protected constructor to create new builder. |
protected |
BuilderBase(CompositeIDBase pObject)
Use
CompositeID.builder(CompositeID) instead of protected constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
CompositeID |
build()
Method creates a new instance of class CompositeID.
|
CompositeID |
buildValidated()
Method creates a new validated instance of class CompositeID.
|
CompositeIDBase.BuilderBase |
setPrimaryCode(long pPrimaryCode)
Method sets attribute
primaryCode. |
CompositeIDBase.BuilderBase |
setSecondaryCode(long pSecondaryCode)
Method sets attribute
secondaryCode. |
protected BuilderBase()
CompositeID.builder() instead of protected constructor to create new builder.protected BuilderBase(CompositeIDBase pObject)
CompositeID.builder(CompositeID) instead of protected constructor to create new builder.public CompositeIDBase.BuilderBase setPrimaryCode(long pPrimaryCode)
primaryCode.pPrimaryCode - Value to which primaryCode should be set.CompositeIDBase.BuilderBase Instance of this builder to support chaining setters. Method never returns null.public CompositeIDBase.BuilderBase setSecondaryCode(long pSecondaryCode)
secondaryCode.pSecondaryCode - Value to which secondaryCode should be set.CompositeIDBase.BuilderBase Instance of this builder to support chaining setters. Method never returns null.public CompositeID build()
public CompositeID 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.