Package org.cyclos.impl.banking
Class AccountHistoryEntry
- java.lang.Object
-
- org.cyclos.impl.banking.AccountHistoryEntry
-
- All Implemented Interfaces:
HasCurrency,HasCurrencyAmount,Trans,ProcessableForDataTranslation,EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>,HasTransactionNumber,IEntity,HasAmount
public class AccountHistoryEntry extends Object implements Trans, ProcessableForDataTranslation, EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>
Represents an account history entry
-
-
Constructor Summary
Constructors Constructor Description AccountHistoryEntry()AccountHistoryEntry(Account account, Transfer transfer, DataTranslationHandler dataTranslationHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessClientgetAccessClient()AccountgetAccount()BigDecimalgetAmount()ChannelgetChannel()CurrencygetCurrency()Class<TransactionCustomField>getCustomFieldClass()Returns custom field the class on this entityClass<TransactionCustomFieldValue>getCustomFieldValueClass()Returns the class for storing custom field valuesSet<TransactionCustomFieldValue>getCustomValues()Returns all custom field valuesDategetDate()StringgetDescription()AccountgetFrom()StringgetFromName()LonggetId()ObjectgetRelated()AccountgetRelatedAccount()List<TransferStatus>getStatuses(List<TransferStatusFlow> flows)AccountgetTo()StringgetToName()TransactiongetTransaction()StringgetTransactionNumber()TransfergetTransfer()StringgetTruncatedDescription()TransferTypegetType()voidsetAccount(Account account)voidsetTransfer(Transfer transfer)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrencyAmount
getCurrencyAmount
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getActualAmount, getFromOwner, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwner, getToOwnerOrType, getToType, getToUser, getTransactionNumberOrId, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Constructor Detail
-
AccountHistoryEntry
public AccountHistoryEntry()
-
AccountHistoryEntry
public AccountHistoryEntry(Account account, Transfer transfer, DataTranslationHandler dataTranslationHandler)
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceTrans
-
getAccount
public Account getAccount()
-
getAmount
public BigDecimal getAmount()
-
getChannel
public Channel getChannel()
- Specified by:
getChannelin interfaceTrans
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getCustomFieldClass
public Class<TransactionCustomField> getCustomFieldClass()
Description copied from interface:EntityWithCustomValuesReturns custom field the class on this entity
-
getCustomFieldValueClass
public Class<TransactionCustomFieldValue> getCustomFieldValueClass()
Description copied from interface:EntityWithCustomValuesReturns the class for storing custom field values
-
getCustomValues
public Set<TransactionCustomFieldValue> getCustomValues()
Description copied from interface:EntityWithCustomValuesReturns all custom field values- Specified by:
getCustomValuesin interfaceEntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>- Specified by:
getCustomValuesin interfaceTrans
-
getDescription
public String getDescription()
-
getFromName
public String getFromName()
- Specified by:
getFromNamein interfaceTrans
-
getRelated
public Object getRelated()
-
getRelatedAccount
public Account getRelatedAccount()
-
getStatuses
public List<TransferStatus> getStatuses(List<TransferStatusFlow> flows)
-
getTransaction
public Transaction getTransaction()
-
getTransactionNumber
public String getTransactionNumber()
- Specified by:
getTransactionNumberin interfaceHasTransactionNumber
-
getTransfer
public Transfer getTransfer()
-
getTruncatedDescription
public String getTruncatedDescription()
-
getType
public TransferType getType()
-
setAccount
public void setAccount(Account account)
-
setTransfer
public void setTransfer(Transfer transfer)
-
-