| 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 association
sale. |
Sale.Builder |
setTransactionAmount(BigDecimal pTransactionAmount)
Method sets 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)
transactionAmount.pTransactionAmount - Value to which transactionAmount should be set.Sale.Builder Instance of this builder to support chaining setters. Method never returns null.public Sale.Builder setSale(Channel pSale)
sale.pSale - Value to which sale should be set.Sale.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.