Package org.cyclos.entities.banking
Class TransferFeeTransfer
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.banking.Transfer
-
- org.cyclos.entities.banking.TransferFeeTransfer
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,Trans,HasNetwork,ProcessableForProxying,RatedEntity,HasTransactionNumber,IEntity,HasAmount
@Entity public class TransferFeeTransfer extends Transfer
A transfer generated from a transaction fee charge
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
-
Fields inherited from class org.cyclos.entities.banking.Transfer
pendingNotification
-
-
Constructor Summary
Constructors Constructor Description TransferFeeTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<TransactionCustomFieldValue>getCustomValuesForExport()This method returns the transaction's custom values required when exporting the visible fields.
We need to override this method because the default implementation never returns the custom values for transfer fees.TransactiongetTransaction()We don't return the transaction for fees because it contains data such as fromName, toName, description and custom fields which belong to the original transfer, not to feesTransferFeegetTransferFee()TransferNaturegetTransferNature()voidsetTransferFee(TransferFee transferFee)-
Methods inherited from class org.cyclos.entities.banking.Transfer
fromTransaction, getAccessClient, getAmount, getChannel, getChargedBackBy, getChildren, getCurrency, getCustomValues, getDate, getEmissionDate, getExpirationDate, getFrom, getFromName, getFromOwner, getNetwork, getParent, getRoot, getStatus, getStatuses, getTo, getToName, getToOwner, getTransactionId, getTransactionNumber, getTransactionTransactionNumber, getType, isPendingNotification, setAmount, setChargedBackBy, setChildren, setDate, setEmissionDate, setExpirationDate, setFrom, setParent, setPendingNotification, setStatus, setTo, setTransaction, setTransactionNumber, setType
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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.ProcessableForProxying
getProxyClass
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getActualAmount, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwnerOrType, getToType, getToUser, getTransactionNumberOrId, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Method Detail
-
getCustomValuesForExport
public Set<TransactionCustomFieldValue> getCustomValuesForExport()
This method returns the transaction's custom values required when exporting the visible fields.
We need to override this method because the default implementation never returns the custom values for transfer fees. SeegetTransaction()andTransfer.getCustomValues()
-
getTransaction
public Transaction getTransaction()
We don't return the transaction for fees because it contains data such as fromName, toName, description and custom fields which belong to the original transfer, not to fees- Overrides:
getTransactionin classTransfer
-
getTransferFee
public TransferFee getTransferFee()
-
getTransferNature
public TransferNature getTransferNature()
- Specified by:
getTransferNaturein classTransfer
-
setTransferFee
public void setTransferFee(TransferFee transferFee)
-
-