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,ProcessableForDataTranslation,IEntity
- Direct Known Subclasses:
SystemAccount,UserAccount
@Entity public abstract class Account extends NetworkedEntity implements HasCurrency
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, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toString
-
-
-
-
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()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getCustomCreditLimit
public BigDecimal getCustomCreditLimit()
Returns the cached customized 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.
-
getCustomUpperCreditLimit
public BigDecimal getCustomUpperCreditLimit()
Returns the cached customized 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.
-
getNature
public abstract AccountTypeNature getNature()
-
getNegativeSince
public Date getNegativeSince()
-
getNetwork
public Network getNetwork()
Description copied from class:NetworkedEntityReturns the network this entity belongs to- Specified by:
getNetworkin classNetworkedEntity
-
getNumber
public String getNumber()
-
getOwner
public abstract InternalAccountOwner getOwner()
-
getType
public AccountType getType()
-
isHasCustomCreditLimit
public boolean isHasCustomCreditLimit()
-
isHasCustomUpperCreditLimit
public boolean isHasCustomUpperCreditLimit()
-
setAccountRates
public void setAccountRates(AccountRates accountRates)
-
setClosedAccountBalances
public void setClosedAccountBalances(Set<ClosedAccountBalance> closedAccountBalances)
-
setCreationDate
public void setCreationDate(Date creationDate)
-
setCustomCreditLimit
public void setCustomCreditLimit(BigDecimal customCreditLimit)
-
setCustomUpperCreditLimit
public void setCustomUpperCreditLimit(BigDecimal customUpperCreditLimit)
-
setHasCustomCreditLimit
public void setHasCustomCreditLimit(boolean hasCustomCreditLimit)
-
setHasCustomUpperCreditLimit
public void setHasCustomUpperCreditLimit(boolean hasCustomUpperCreditLimit)
-
setNegativeSince
public void setNegativeSince(Date negativeSince)
-
setNumber
public void setNumber(String number)
-
setType
public void setType(AccountType type)
-
-