| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Sale.builder() instead of private constructor to create new builder. |
protected |
Builder(Sale pObject)
Use
Sale.builder(Sale) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Sale |
build()
Method creates a new instance of class Sale.
|
Sale |
buildValidated()
Method creates a new validated instance of class Sale.
|
Sale.Builder |
setSale(Channel pSale)
Method sets the association "sale".
|
Sale.Builder |
setTransactionAmount(BigDecimal pTransactionAmount)
Method sets the attribute "transactionAmount".
|
protected Builder()
Sale.builder() instead of private constructor to create new builder.protected Builder(Sale pObject)
Sale.builder(Sale) instead of private constructor to create new builder.public Sale.Builder setTransactionAmount(BigDecimal pTransactionAmount)
pTransactionAmount - Value to which the attribute "transactionAmount" should be set.public Sale.Builder setSale(Channel pSale)
pSale - Channel to which the association "sale" should be set.public Sale build()
public Sale 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.