net.sf.emarket.account.service
Class AccountManagerServiceImpl
java.lang.Object
net.sf.emarket.account.service.AccountManagerServiceImpl
- All Implemented Interfaces:
- java.io.Serializable, IAccountManagerService
public class AccountManagerServiceImpl
- extends java.lang.Object
- implements IAccountManagerService
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountManagerServiceImpl
public AccountManagerServiceImpl()
setAccountDao
public void setAccountDao(IAccountDao dao)
setAccountPositionDao
public void setAccountPositionDao(IAccountPositionDao dao)
setAcctPositionTransferDao
public void setAcctPositionTransferDao(IAcctPositionTransferDao dao)
setCashBalanceDao
public void setCashBalanceDao(ICashBalanceDao dao)
setCashTransferDao
public void setCashTransferDao(ICashTransferDao dao)
setQuoteManager
public void setQuoteManager(IQuoteManagerService mgr)
setUserManager
public void setUserManager(IUserManagerService mgr)
addAccount
public void addAccount(Account account)
- Specified by:
addAccount
in interface IAccountManagerService
deleteAccountById
public int deleteAccountById(java.lang.String acctId)
- Specified by:
deleteAccountById
in interface IAccountManagerService
getAccountById
public Account getAccountById(java.lang.String acctId)
- Specified by:
getAccountById
in interface IAccountManagerService
getAccountsForUser
public java.util.List<Account> getAccountsForUser(User user)
- Specified by:
getAccountsForUser
in interface IAccountManagerService
getAccountsOfType
public java.util.List<Account> getAccountsOfType(java.lang.String acctType)
- Specified by:
getAccountsOfType
in interface IAccountManagerService
updateAccount
public int updateAccount(Account account)
- Specified by:
updateAccount
in interface IAccountManagerService
getCashBalance
public CashBalance getCashBalance(Account account)
- Specified by:
getCashBalance
in interface IAccountManagerService
tranferCash
@Transactional(propagation=REQUIRED,
readOnly=false)
public void tranferCash(CashTransfer transfer)
throws NotEnoughCashException,
NotValidAccountException
- Specified by:
tranferCash
in interface IAccountManagerService
- Throws:
NotEnoughCashException
NotValidAccountException
transferPosition
@Transactional(propagation=REQUIRED,
readOnly=false)
public void transferPosition(AcctPositionTransfer transfer)
throws NotEnoughPositionsException,
NotValidAccountException
- Specified by:
transferPosition
in interface IAccountManagerService
- Throws:
NotEnoughPositionsException
NotValidAccountException
addAccountPosition
@Transactional(propagation=REQUIRED,
readOnly=false)
public AcctPosition addAccountPosition(AcctPosition position)
- Specified by:
addAccountPosition
in interface IAccountManagerService
deleteAccountPosition
@Transactional(propagation=REQUIRED,
readOnly=false)
public void deleteAccountPosition(AcctPosition position)
- Specified by:
deleteAccountPosition
in interface IAccountManagerService
getAccountPosition
public AcctPosition getAccountPosition(long acctPositionId)
- Specified by:
getAccountPosition
in interface IAccountManagerService
getAccountPositions
public java.util.List<AcctPosition> getAccountPositions(java.lang.String acctId)
- Specified by:
getAccountPositions
in interface IAccountManagerService
getAccountPositions
public java.util.List<AcctPosition> getAccountPositions(java.lang.String acctId,
java.lang.String symbol)
- Specified by:
getAccountPositions
in interface IAccountManagerService
getTotalValueOfPositions
public float getTotalValueOfPositions(java.lang.String acctId)
- Specified by:
getTotalValueOfPositions
in interface IAccountManagerService
updateAccountPosition
@Transactional(propagation=REQUIRED,
readOnly=false)
public AcctPosition updateAccountPosition(AcctPosition position)
- Specified by:
updateAccountPosition
in interface IAccountManagerService
getAccountPositionsSummary
public java.util.List<AcctPositionSummary> getAccountPositionsSummary(java.lang.String acctId)
- Specified by:
getAccountPositionsSummary
in interface IAccountManagerService
getTopAccounts
public java.util.List<AcctValue> getTopAccounts(int count)
- Specified by:
getTopAccounts
in interface IAccountManagerService
Copyright © 2009. All Rights Reserved.