@Valid public class Sale extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Sale.Builder
Class implements builder to create a new instance of class
Sale. |
| Modifier | Constructor and Description |
|---|---|
protected |
Sale()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
Sale(Sale.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static Sale.Builder |
builder()
Method returns a new builder.
|
static Sale.Builder |
builder(BigDecimal pTransactionAmount)
Method creates a new builder and initializes it with the passed attributes.
|
static Sale.Builder |
builder(Sale pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
Channel |
getSale()
Method returns association
sale. |
BigDecimal |
getTransactionAmount()
Method returns attribute
transactionAmount. |
void |
setSale(Channel pSale)
Method sets association
sale. |
void |
setTransactionAmount(BigDecimal pTransactionAmount)
Method sets attribute
transactionAmount. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
void |
unsetSale()
Method unsets
sale. |
protected Sale()
protected Sale(Sale.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Sale.Builder builder()
Sale.Builder New builder that can be used to create new Sale objects.public static Sale.Builder builder(Sale pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Sale.Builder New builder that can be used to create new Sale objects. The method never returns null.public static Sale.Builder builder(BigDecimal pTransactionAmount)
public BigDecimal getTransactionAmount()
transactionAmount.BigDecimal Value to which transactionAmount is set.public void setTransactionAmount(BigDecimal pTransactionAmount)
transactionAmount.pTransactionAmount - Value to which transactionAmount should be set.public void setSale(Channel pSale)
sale.pSale - Value to which sale should be set.public final void unsetSale()
sale.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.