org.apache.geronimo.samples.daytrader
Interface TradeWSServices

All Superinterfaces:
Remote

public interface TradeWSServices
extends Remote


Method Summary
 OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode)
           
 void cancelOrder(Integer orderID, boolean twoPhase)
           
 OrderDataBean completeOrder(Integer orderID, boolean twoPhase)
           
 QuoteDataBean createQuote(String symbol, String companyName, BigDecimal price)
           
 AccountDataBean getAccountData(String userID)
           
 AccountProfileDataBean getAccountProfileData(String userID)
           
 QuoteDataBean[] getAllQuotes()
           
 OrderDataBean[] getClosedOrders(String userID)
           
 HoldingDataBean getHolding(Integer holdingID)
           
 HoldingDataBean[] getHoldings(String userID)
           
 MarketSummaryDataBeanWS getMarketSummary()
           
 OrderDataBean[] getOrders(String userID)
           
 QuoteDataBean getQuote(String symbol)
           
 AccountDataBean login(String userID, String password)
           
 void logout(String userID)
           
 void orderCompleted(String userID, Integer orderID)
           
 void queueOrder(Integer orderID, boolean twoPhase)
           
 AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance)
           
 RunStatsDataBean resetTrade(boolean deleteAll)
           
 OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode)
           
 AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)
           
 QuoteDataBean updateQuotePriceVolume(String symbol, BigDecimal newPrice, double sharesTraded)
           
 

Method Detail

getMarketSummary

MarketSummaryDataBeanWS getMarketSummary()
                                         throws RemoteException
Throws:
RemoteException

buy

OrderDataBean buy(String userID,
                  String symbol,
                  double quantity,
                  int orderProcessingMode)
                  throws RemoteException
Throws:
RemoteException

sell

OrderDataBean sell(String userID,
                   Integer holdingID,
                   int orderProcessingMode)
                   throws RemoteException
Throws:
RemoteException

queueOrder

void queueOrder(Integer orderID,
                boolean twoPhase)
                throws RemoteException
Throws:
RemoteException

completeOrder

OrderDataBean completeOrder(Integer orderID,
                            boolean twoPhase)
                            throws RemoteException
Throws:
RemoteException

cancelOrder

void cancelOrder(Integer orderID,
                 boolean twoPhase)
                 throws RemoteException
Throws:
RemoteException

orderCompleted

void orderCompleted(String userID,
                    Integer orderID)
                    throws RemoteException
Throws:
RemoteException

getOrders

OrderDataBean[] getOrders(String userID)
                          throws RemoteException
Throws:
RemoteException

getClosedOrders

OrderDataBean[] getClosedOrders(String userID)
                                throws RemoteException
Throws:
RemoteException

createQuote

QuoteDataBean createQuote(String symbol,
                          String companyName,
                          BigDecimal price)
                          throws RemoteException
Throws:
RemoteException

getQuote

QuoteDataBean getQuote(String symbol)
                       throws RemoteException
Throws:
RemoteException

getAllQuotes

QuoteDataBean[] getAllQuotes()
                             throws RemoteException
Throws:
RemoteException

updateQuotePriceVolume

QuoteDataBean updateQuotePriceVolume(String symbol,
                                     BigDecimal newPrice,
                                     double sharesTraded)
                                     throws RemoteException
Throws:
RemoteException

getHoldings

HoldingDataBean[] getHoldings(String userID)
                              throws RemoteException
Throws:
RemoteException

getHolding

HoldingDataBean getHolding(Integer holdingID)
                           throws RemoteException
Throws:
RemoteException

getAccountData

AccountDataBean getAccountData(String userID)
                               throws RemoteException
Throws:
RemoteException

getAccountProfileData

AccountProfileDataBean getAccountProfileData(String userID)
                                             throws RemoteException
Throws:
RemoteException

updateAccountProfile

AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)
                                            throws RemoteException
Throws:
RemoteException

login

AccountDataBean login(String userID,
                      String password)
                      throws RemoteException
Throws:
RemoteException

logout

void logout(String userID)
            throws RemoteException
Throws:
RemoteException

register

AccountDataBean register(String userID,
                         String password,
                         String fullname,
                         String address,
                         String email,
                         String creditcard,
                         BigDecimal openBalance)
                         throws RemoteException
Throws:
RemoteException

resetTrade

RunStatsDataBean resetTrade(boolean deleteAll)
                            throws RemoteException
Throws:
RemoteException


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.