Package org.cyclos.entities.banking
Class Installment
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.banking.Installment
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,Trans,HasNetwork,ProcessableForProxying,HasTransactionNumber,IEntity,HasAmount
- Direct Known Subclasses:
RecurringPaymentOccurrence,ScheduledPaymentInstallment
@Entity public abstract class Installment extends NetworkedEntity implements Trans
An installment is an amount of money generated by a scheduled transaction, currently,ScheduledPayments andRecurringPayments.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
Fields Modifier and Type Field Description protected DatedueDateprotected InternalTransactiontransactionThe transaction that generated this installment
-
Constructor Summary
Constructors Constructor Description Installment()
-
Method Summary
-
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.ProcessableForProxying
getProxyClass
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getActualAmount, getCustomValuesForExport, getFromOwner, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwner, getToOwnerOrType, getToType, getToUser, getTransactionNumberOrId, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Field Detail
-
transaction
protected InternalTransaction transaction
The transaction that generated this installment
-
dueDate
protected Date dueDate
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceTrans
-
getAmount
public BigDecimal getAmount()
-
getBy
public BasicUser getBy()
-
getChannel
public Channel getChannel()
- Specified by:
getChannelin interfaceTrans
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getCurrencyAmount
public CurrencyAmount getCurrencyAmount()
- Specified by:
getCurrencyAmountin interfaceHasCurrencyAmount
-
getCustomValues
public Set<TransactionCustomFieldValue> getCustomValues()
- Specified by:
getCustomValuesin interfaceTrans
-
getDueDate
public Date getDueDate()
-
getFromName
public String getFromName()
- Specified by:
getFromNamein interfaceTrans
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getNumber
public int getNumber()
-
getStatus
public InstallmentStatus getStatus()
-
getTotalInstallments
public Integer getTotalInstallments()
-
getTransaction
public InternalTransaction getTransaction()
-
getTransactionNumber
public String getTransactionNumber()
- Specified by:
getTransactionNumberin interfaceHasTransactionNumber
-
getTransfer
public InstallmentTransfer getTransfer()
-
getTransferDate
public Date getTransferDate()
-
getTransferId
public Long getTransferId()
-
getTransferTransactionNumber
public String getTransferTransactionNumber()
-
getType
public TransferType getType()
-
setAmount
public void setAmount(BigDecimal amount)
-
setBy
public void setBy(BasicUser by)
-
setDueDate
public void setDueDate(Date dueDate)
-
setNumber
public void setNumber(int number)
-
setStatus
public void setStatus(InstallmentStatus status)
-
setTransaction
public void setTransaction(InternalTransaction transaction)
-
setTransfer
public void setTransfer(InstallmentTransfer transfer)
-
-