Package org.cyclos.entities.banking
Class Account
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.banking.Account
-
- All Implemented Interfaces:
Cloneable,HasCurrency,IAccount,HasNetwork,ProcessableForProxying,IEntity
- Direct Known Subclasses:
SystemAccount,UserAccount
@Entity public abstract class Account extends NetworkedEntity implements IAccount
A generic account
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description Account()
-
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.HasNetwork
isGlobal
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Field Detail
-
user
protected User user
-
-
Method Detail
-
getAccountBalanceLimitLog
public List<AccountBalanceLimitLog> getAccountBalanceLimitLog()
-
getAccountRates
public AccountRates getAccountRates()
-
getAccountRatesId
public Long getAccountRatesId()
- Specified by:
getAccountRatesIdin interfaceIAccount
-
getAmountReservations
public Set<AmountReservation> getAmountReservations()
-
getArchivedBalance
public BigDecimal getArchivedBalance()
-
getArchivedReserved
public BigDecimal getArchivedReserved()
-
getArchivingDate
public Date getArchivingDate()
-
getClosedAccountBalances
public Set<ClosedAccountBalance> getClosedAccountBalances()
-
getCreationDate
public Date getCreationDate()
-
getCreditLimit
public BigDecimal getCreditLimit()
Returns the cached lower credit limit for this account. Shouldn't be used directly, because when not customized will get the value from products. Instead, call the service method passing a null date.- Specified by:
getCreditLimitin interfaceIAccount
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getNature
public abstract AccountTypeNature getNature()
-
getNegativeSince
public Date getNegativeSince()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getType
public AccountType getType()
-
getUpperCreditLimit
public BigDecimal getUpperCreditLimit()
Returns the cached upper credit limit for this account. Shouldn't be used directly, because when not customized will get the value from products. Instead, use the AccountService method, passing a null date.- Specified by:
getUpperCreditLimitin interfaceIAccount
-
isActive
public abstract boolean isActive()
-
setAccountRates
public void setAccountRates(AccountRates accountRates)
-
setAccountRatesId
public void setAccountRatesId(Long accountRatesId)
- Specified by:
setAccountRatesIdin interfaceIAccount
-
setArchivedBalance
public void setArchivedBalance(BigDecimal archivedBalance)
-
setArchivedReserved
public void setArchivedReserved(BigDecimal archivedReserved)
-
setArchivingDate
public void setArchivingDate(Date archivingDate)
-
setClosedAccountBalances
public void setClosedAccountBalances(Set<ClosedAccountBalance> closedAccountBalances)
-
setCreationDate
public void setCreationDate(Date creationDate)
-
setCreditLimit
public void setCreditLimit(BigDecimal creditLimit)
- Specified by:
setCreditLimitin interfaceIAccount
-
setNegativeSince
public void setNegativeSince(Date negativeSince)
-
setType
public void setType(AccountType type)
-
setUpperCreditLimit
public void setUpperCreditLimit(BigDecimal upperCreditLimit)
- Specified by:
setUpperCreditLimitin interfaceIAccount
-
toVORef
public AccountVO toVORef()
-
-