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,ProcessableForDataTranslation,IEntity
- Direct Known Subclasses:
SystemAccount,UserAccount
@Entity public abstract class Account extends NetworkedEntity implements IAccount
A generic account
-
-
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
clone, equals, getId, hashCode, id, ids, isPersistent, isTransient, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
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
-
-
-
-
Field Detail
-
user
protected User user
-
-
Method Detail
-
getAccountBalanceLimitLog
public List<AccountBalanceLimitLog> getAccountBalanceLimitLog()
-
getAccountRates
public AccountRates getAccountRates()
-
getAmountReservations
public Set<AmountReservation> getAmountReservations()
-
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, useAccountServiceLocal#getLimitLog(Account, Date)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, useAccountServiceLocal#getLimitLog(Account, Date)passing a null date.- Specified by:
getUpperCreditLimitin interfaceIAccount
-
isActive
public abstract boolean isActive()
-
lockKey
public LockKey lockKey()
-
setAccountRates
public void setAccountRates(AccountRates accountRates)
-
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()
-
-