@Entity public abstract class Transaction extends NetworkedEntity implements Trans, EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>
Transfers.| Modifier and Type | Field and Description |
|---|---|
protected TransactionAuthorizationStatus |
authorizationStatus
This represents the authorization status of the transaction.
|
protected TransactionAuthorizationType |
authorizationType
This represents the authorization status type of the transaction.
|
protected java.util.Date |
expirationDate
The expiration date is used in a few subclasses, but is declared here to make queries easier
|
protected AuthorizationLevel |
nextAuthorizationLevel
This really belongs to
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler. |
protected java.lang.Boolean |
received
This really belongs to
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler. |
protected Operator |
receivedBy
This really belongs to
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler. |
protected java.lang.Boolean |
showToReceiver
This represents if a transaction is shown to receiver.
|
protected java.lang.String |
status
This represents the status of the transaction.
|
protected Transaction |
transaction
This represents the generated transaction after this transaction was processed.
|
| Constructor and Description |
|---|
Transaction() |
| Modifier and Type | Method and Description |
|---|---|
AccessClient |
getAccessClient() |
java.math.BigDecimal |
getAmount() |
BasicUser |
getBy() |
Channel |
getChannel() |
Currency |
getCurrency() |
java.lang.Class<TransactionCustomField> |
getCustomFieldClass()
Returns custom field the class on this entity
|
java.lang.Class<TransactionCustomFieldValue> |
getCustomFieldValueClass()
Returns the class for storing custom field values
|
java.util.Set<TransactionCustomFieldValue> |
getCustomValues()
Returns all custom field values
|
java.util.Date |
getDate() |
java.lang.String |
getDescription() |
Account |
getFrom() |
java.lang.String |
getFromName() |
abstract Location |
getLocation() |
abstract TransactionNature |
getNature() |
Network |
getNetwork()
Returns the network this entity belongs to
|
BasicUser |
getPerformer()
If this payment was performed by an operator, returns it.
|
PrincipalType |
getPrincipalType() |
abstract java.util.Date |
getProcessDate()
Returns the date the transaction was actually processed
|
BasicUser |
getReceiver()
If this payment was received by an operator, returns it.
|
java.lang.String |
getRelatedName(InternalAccountOwner owner) |
Account |
getTo() |
java.lang.String |
getToName() |
User |
getToUser() |
java.lang.String |
getTransactionNumber() |
TransferType |
getType() |
void |
setAccessClient(AccessClient accessClient) |
void |
setAmount(java.math.BigDecimal amount) |
void |
setBy(BasicUser by) |
void |
setChannel(Channel channel) |
void |
setCustomValues(java.util.Set<TransactionCustomFieldValue> customValues) |
void |
setDate(java.util.Date date) |
void |
setDescription(java.lang.String description) |
void |
setFrom(Account from) |
void |
setFromName(java.lang.String fromName) |
void |
setPrincipalType(PrincipalType principalType) |
void |
setTo(Account to) |
void |
setToName(java.lang.String toName) |
void |
setTransactionNumber(java.lang.String transactionNumber) |
void |
setType(TransferType type) |
isGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetActualAmount, getFromOwner, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwner, getToOwnerOrType, getToType, isDebit, isFromSystem, isFromUser, isToSystem, isToUsergetCurrencyAmountprotected Transaction transaction
Ticket, PaymentRequest, ExternalPayment but we put it here so we
can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in each subclass with the right type.protected java.lang.String status
Ticket, PaymentRequest, ExternalPayment, RecurringPayment,
ScheduledPayment but we put it here so we can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in each subclass with the right enum type.protected java.util.Date expirationDate
protected java.lang.Boolean showToReceiver
RecurringPayment, ScheduledPayment but we put it here so we can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in each subclass.protected TransactionAuthorizationStatus authorizationStatus
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in the proper subclass.protected TransactionAuthorizationType authorizationType
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler.
Here we have only the property the corresponding get/set methods are in the proper subclass.protected AuthorizationLevel nextAuthorizationLevel
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler.protected java.lang.Boolean received
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler.protected Operator receivedBy
BasePayment and its subclasses,
but we put it here so we can make (DB) queries simpler.public AccessClient getAccessClient()
getAccessClient in interface Transpublic java.math.BigDecimal getAmount()
public BasicUser getBy()
public Channel getChannel()
getChannel in interface Transpublic Currency getCurrency()
getCurrency in interface HasCurrencypublic java.lang.Class<TransactionCustomField> getCustomFieldClass()
EntityWithCustomValuespublic java.lang.Class<TransactionCustomFieldValue> getCustomFieldValueClass()
EntityWithCustomValuespublic java.util.Set<TransactionCustomFieldValue> getCustomValues()
EntityWithCustomValuesgetCustomValues in interface TransgetCustomValues in interface EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>public java.lang.String getDescription()
public java.lang.String getFromName()
public abstract Location getLocation()
public abstract TransactionNature getNature()
public Network getNetwork()
NetworkedEntitygetNetwork in class NetworkedEntitypublic BasicUser getPerformer()
public PrincipalType getPrincipalType()
public abstract java.util.Date getProcessDate()
public BasicUser getReceiver()
public java.lang.String getRelatedName(InternalAccountOwner owner)
public java.lang.String getToName()
public java.lang.String getTransactionNumber()
getTransactionNumber in interface HasTransactionNumberpublic TransferType getType()
public void setAccessClient(AccessClient accessClient)
public void setAmount(java.math.BigDecimal amount)
public void setBy(BasicUser by)
public void setChannel(Channel channel)
public void setCustomValues(java.util.Set<TransactionCustomFieldValue> customValues)
public void setDate(java.util.Date date)
public void setDescription(java.lang.String description)
public void setFrom(Account from)
public void setFromName(java.lang.String fromName)
public void setPrincipalType(PrincipalType principalType)
public void setTo(Account to)
public void setToName(java.lang.String toName)
public void setTransactionNumber(java.lang.String transactionNumber)
public void setType(TransferType type)