@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 as many frameworks required that.
|
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(Sale pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
Channel |
getSale()
Method returns the association "sale".
|
BigDecimal |
getTransactionAmount()
Method returns the attribute "transactionAmount".
|
void |
setSale(Channel pSale)
Method sets the association "sale".
|
void |
setTransactionAmount(BigDecimal pTransactionAmount)
Method sets the 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 the association "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 BigDecimal getTransactionAmount()
public void setTransactionAmount(BigDecimal pTransactionAmount)
pTransactionAmount - Value to which the attribute "transactionAmount" should be set.public Channel getSale()
public void setSale(Channel pSale)
pSale - Channel to which the association "sale" should be set.public final void unsetSale()
public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.