Package org.apache.stonehenge.stocktrader

Examples of org.apache.stonehenge.stocktrader.CustomAccountProfileBean


  public CustomAccountBean addNewRegisteredUser(String userId,
      String password, String fullName, String address, String email,
      String creditcard, BigDecimal openBalance) throws DAOException {
    CustomerDAO customerDAO = factory.getCustomerDAO();
    CustomAccountProfileBean customerProfile = new CustomAccountProfileBean(
        userId, password, fullName, address, email, creditcard);
    customerDAO.insertAccountProfile(customerProfile);
    CustomAccountBean customer = new CustomAccountBean(0, userId, Calendar
        .getInstance(), openBalance, 0, openBalance, Calendar
        .getInstance(), 0);
View Full Code Here


            customerProfileByUserId = sqlConnection.prepareStatement(SQL_SELECT_CUSTOMER_PROFILE_BY_USERID);
            customerProfileByUserId.setString(1, userId);
            ResultSet rs = customerProfileByUserId.executeQuery();
            if (rs.next()) {
                try {
                    CustomAccountProfileBean accountProfileDataBean = new CustomAccountProfileBean(
                            rs.getString(1), rs.getString(2), rs.getString(3),
                            rs.getString(4), rs.getString(5), rs.getString(6));
                    return accountProfileDataBean;
                } finally {
                    try {
View Full Code Here

TOP

Related Classes of org.apache.stonehenge.stocktrader.CustomAccountProfileBean

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.