Package com.bigbank.account

Examples of com.bigbank.account.AccountFactory


    }

    public AccountReport getAccountReport(final int customerID) throws RemoteException {
        try {
            final AccountFactory accountFactory = AccountFactory.INSTANCE;
            final AccountReport accountReport = accountFactory.createAccountReport();
            InputStream mapping = createConfigStream();

            Connection conn = getConnection();
            DAS das = DAS.FACTORY.createDAS(mapping, conn);
View Full Code Here


    }

    public AccountLog getAccountLog(final int customerID) throws RemoteException {

        try {
            final AccountFactory accountFactory = AccountFactory.INSTANCE;
            final AccountLog accountLog = accountFactory.createAccountLog();
            InputStream mapping = createConfigStream();

            Connection conn = getConnection();
            DAS das = DAS.FACTORY.createDAS(mapping, conn);
            Command select = das.createCommand("SELECT logSeqNo, accountNumber, actionType, amount FROM acctLog where id = ?");
View Full Code Here

        // TODO Auto-generated method stub
        return null;
    }

    public AccountReport getAccountReport(int customerID) {
        final AccountFactory accountFactory = AccountFactory.INSTANCE;
        AccountReport accountReport = accountFactory.createAccountReport();
        List accounts = accountReport.getAccountSummaries();

        AccountSummary account = accountFactory.createAccountSummary();
        account.setAccountType("1111");
        account.setAccountNumber("22-22-22");
        account.setBalance(123.45F);
        accounts.add(account);

        account = accountFactory.createAccountSummary();
        account.setAccountType("04-11-19");
        account.setAccountNumber("11-23");
        account.setBalance(543.21F);
        accounts.add(account);

        List stocks = accountReport.getStockSummaries();
        StockSummary stock = accountFactory.createStockSummary();
        stock.setSymbol("IBM");
        stock.setPurchaseDate("1999-11-23");
        stock.setPurchaseLotNumber(101);
        stock.setPurchasePrice(33.33F);
        stock.setQuantity(10);
        stocks.add(stock);

        stock = accountFactory.createStockSummary();
        stock.setSymbol("TUSK");
        stock.setPurchaseDate("2005-01-05");
        stock.setPurchaseLotNumber(102);
        stock.setPurchasePrice(11.11F);
        stock.setQuantity(4);
View Full Code Here

        // TODO Auto-generated method stub
        return null;
    }

    public AccountReport getAccountReport(int customerID) {
        final AccountFactory accountFactory = AccountFactory.INSTANCE;
        AccountReport accountReport = accountFactory.createAccountReport();
        List accounts = accountReport.getAccountSummaries();

        AccountSummary account = accountFactory.createAccountSummary();
        account.setAccountType("1111");
        account.setAccountNumber("22-22-22");
        account.setBalance(123.45F);
        accounts.add(account);

        account = accountFactory.createAccountSummary();
        account.setAccountType("04-11-19");
        account.setAccountNumber("11-23");
        account.setBalance(543.21F);
        accounts.add(account);

        List stocks = accountReport.getStockSummaries();
        StockSummary stock = accountFactory.createStockSummary();
        stock.setSymbol("IBM");
        stock.setPurchaseDate("1999-11-23");
        stock.setPurchaseLotNumber(101);
        stock.setPurchasePrice(33.33F);
        stock.setQuantity(10);
        stocks.add(stock);

        stock = accountFactory.createStockSummary();
        stock.setSymbol("TUSK");
        stock.setPurchaseDate("2005-01-05");
        stock.setPurchaseLotNumber(102);
        stock.setPurchasePrice(11.11F);
        stock.setQuantity(4);
View Full Code Here

    }

    public AccountReport getAccountReport(final int customerID) throws RemoteException {
        try {
            final AccountFactory accountFactory = AccountFactory.INSTANCE;
            final AccountReport accountReport = accountFactory.createAccountReport();
            InputStream mapping = createConfigStream();

            Command select = Command.FACTORY.createCommand("SELECT accountNumber, accountType, balance FROM accounts where id = :id", mapping);
            Connection conn = getConnection();
            select.setConnection(conn);
View Full Code Here

TOP

Related Classes of com.bigbank.account.AccountFactory

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.