Package org.cyclos.entities.banking
Class AmountReservation
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.banking.AmountReservation
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,HasNetwork,ProcessableForProxying,IEntity,HasAmount
- Direct Known Subclasses:
CustomAmountReservation,ExternalPaymentAmountReservation,InstallmentAmountReservation,OrderAmountReservation,PendingAuthorizationAmountReservation,ScheduledPaymentAmountReservation,TicketAmountReservation,VoucherAmountReservation,VoucherPackAmountReservation,VoucherTransactionAmountReservation,VoucherUnblockAmountReservation
@Entity public abstract class AmountReservation extends NetworkedEntity implements HasCurrencyAmount
Contains Information about reserved amounts for a given account
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
Fields Modifier and Type Field Description protected Transactiontransaction
-
Constructor Summary
Constructors Constructor Description AmountReservation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AccountgetAccount()BigDecimalgetAmount()CurrencygetCurrency()DategetDate()abstract AmountReservationNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs tovoidsetAccount(Account account)voidsetAmount(BigDecimal amount)voidsetDate(Date date)Transactiontransaction()-
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
-
-
-
-
Field Detail
-
transaction
protected Transaction transaction
-
-
Method Detail
-
getAccount
public Account getAccount()
-
getAmount
public BigDecimal getAmount()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getDate
public Date getDate()
-
getNature
public abstract AmountReservationNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
setAccount
public void setAccount(Account account)
-
setAmount
public void setAmount(BigDecimal amount)
-
setDate
public void setDate(Date date)
-
transaction
public Transaction transaction()
-
-