Package org.springframework.nanotrader.service.support.exception

Examples of org.springframework.nanotrader.service.support.exception.NoRecordsFoundException


            log.debug("TradingServiceFacade.findAccountProfile: id=" + id);
        }
        org.springframework.nanotrader.data.domain.Accountprofile accountProfile = tradingService.findAccountProfile(id);
        Accountprofile accountProfileResponse = new Accountprofile();
        if (accountProfile == null) {
            throw new NoRecordsFoundException();
        }

        mapper.map(accountProfile, accountProfileResponse, "accountProfile");
        if (log.isDebugEnabled()) {
            log.debug("TradingServiceFacade.find - after service call. Payload is: "
View Full Code Here


            log.debug("TradingServiceFacade.findHolding: id=" + id);
        }
        Holding holdingResponse = new Holding();
        org.springframework.nanotrader.data.domain.Holding holding = tradingService.findHolding(id, accountId);
        if (holding == null) {
            throw new NoRecordsFoundException();
        }
        Set<String> symbol = new HashSet<String>();
        symbol.add(holding.getQuoteSymbol());
        Map<String, Quote> currentQuote = getCurrentQuotes(symbol);
        mapper.map(holding, holdingResponse);
View Full Code Here

        if (log.isDebugEnabled()) {
            log.debug("TradingServiceFacade.findOrder: orderId=" + orderId + " accountId=" + accountId);
        }
        org.springframework.nanotrader.data.domain.Order order =  tradingService.findOrder(orderId, accountId);
        if (order == null) {
            throw new NoRecordsFoundException();
        }
        Order responseOrder = new Order();
        mapper.map(order, responseOrder, ORDER_MAPPING);
        return responseOrder;
    }
View Full Code Here

        }
       
        Account accountResponse = new Account();
        org.springframework.nanotrader.data.domain.Account account = tradingService.findAccount(id);
        if (account == null) {
            throw new NoRecordsFoundException();
        }
       
        mapper.map(account, accountResponse, ACCOUNT_MAPPING);
       
        if (log.isDebugEnabled()) {
View Full Code Here

        if (log.isDebugEnabled()) {
            log.debug("TradingServiceFacade.findQuote: quoteId=" + symbol);
        }
        org.springframework.nanotrader.data.domain.Quote quote = tradingService.findQuoteBySymbol(symbol);
        if (quote == null) {
            throw new NoRecordsFoundException();
        }
        Quote responseQuote = new Quote();
        mapper.map(quote, responseQuote, QUOTE_MAPPING);
        if (log.isDebugEnabled()) {
            log.debug("TradingServiceFacade.findQuote: completed successfully.");
View Full Code Here

TOP

Related Classes of org.springframework.nanotrader.service.support.exception.NoRecordsFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.