@Entity public abstract class Transaction extends org.cyclos.entities.BaseEntity implements HasTransactionNumber, EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>
Transfers.| Modifier and Type | Class and Description |
|---|---|
static class |
Transaction.TransactionCustomizer
Customizer to allow direct access to fields on queries
|
| Constructor and Description |
|---|
Transaction() |
getDataTranslationType, getVersion, isGlobal, isPersistent, isTransientclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, toStringpublic AccessClient getAccessClient()
public java.math.BigDecimal getAmount()
public BasicUser getBy()
public Channel getChannel()
public Currency getCurrency()
public CurrencyAmount getCurrencyAmount()
public java.lang.Class<TransactionCustomFieldValue> getCustomFieldValueClass()
EntityWithCustomValuespublic java.util.Set<TransactionCustomFieldValue> getCustomValues()
EntityWithCustomValuespublic java.util.Date getDate()
public java.lang.String getDescription()
public abstract AccountLocator getDestinationAccountLocator()
public org.cyclos.entities.EntityImportance getEntityImportance()
getEntityImportance in interface org.cyclos.entities.HasEntityImportancegetEntityImportance in class org.cyclos.entities.SimpleEntitypublic InternalAccountOwner getFromOwner()
public User getFromUser()
public abstract Location getLocation()
public abstract TransactionNature getNature()
public Network getNetwork()
getNetwork in class org.cyclos.entities.BaseEntitypublic PaymentRequest getPaymentRequest()
public PrincipalType getPrincipalType()
public abstract java.util.Date getProcessDate()
public abstract AccountLocator getSourceAccountLocator()
public AccountOwner getToOwner()
public User getToUser()
public java.lang.String getTransactionNumber()
getTransactionNumber in interface HasTransactionNumberpublic TransactionNumber getTransactionNumberRef()
public TransferType getType()
public boolean isFromSystem()
public boolean isFromUser()
public boolean isToSystem()
public boolean isToUser()
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 setFromOwner(InternalAccountOwner from)
public void setFromUser(User fromUser)
public void setPrincipalType(PrincipalType principalType)
public void setToOwner(AccountOwner to)
public void setToUser(User toUser)
public void setTransactionNumberRef(TransactionNumber transactionNumberRef)
public void setType(TransferType type)