Package org.apache.stonehenge.stocktrader

Examples of org.apache.stonehenge.stocktrader.CustomAccountProfileBean


            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


            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),
View Full Code Here

    getAccountDataResponse.setGetAccountDataReturn(accountData);
    return getAccountDataResponse;
  }

  public GetAccountProfileDataResponse getAccountProfileData(GetAccountProfileData getAccountProfileData) {
    CustomAccountProfileBean accountProfileData;
    try {
      accountProfileData = mgr.getAccountProfileData(getAccountProfileData.getUserID());
    } catch (DAOException e) {
      logger.debug("", e);
      throw new RuntimeException(e);
View Full Code Here

    response.setSellEnhancedReturn(param);
    return response;
  }

  public UpdateAccountProfileResponse updateAccountProfile(UpdateAccountProfile updateAccountProfile) {
    CustomAccountProfileBean accountProfile = new CustomAccountProfileBean(updateAccountProfile.getProfileData());
    CustomAccountProfileBean param;
    try {
      param = mgr.updateAccountProfile(accountProfile);
    } catch (DAOException e) {
      logger.debug("", e);
      throw new RuntimeException(e);
View Full Code Here

  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

          .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

            PasswordValidationCallback.PasswordValidationException {
        PasswordValidationCallback.PlainTextPasswordRequest plainTextRequest =
                (PasswordValidationCallback.PlainTextPasswordRequest) request;
        try {
            CustomerDAO user = DAOFactory.getFacotry().getCustomerDAO();
            CustomAccountProfileBean profileBean = user.getAccountProfileData(plainTextRequest.getUsername());
            if (profileBean != null && profileBean.getPassword().equals(plainTextRequest.getPassword())) {
                return true;
            }
        } catch (DAOException e) {
            e.printStackTrace();
            return false;
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),
View Full Code Here

    getAccountDataResponse.setGetAccountDataReturn(accountData);
    return getAccountDataResponse;
  }

  public GetAccountProfileDataResponse getAccountProfileData(GetAccountProfileData getAccountProfileData) {
    CustomAccountProfileBean accountProfileData;
    try {
            if (getAccountProfileData.getUserID() == null) {
                accountProfileData = mgr.getAccountProfileData(getProfileIdFromClaims());
            } else {
          accountProfileData = mgr.getAccountProfileData(getAccountProfileData.getUserID());
View Full Code Here

    response.setSellEnhancedReturn(param);
    return response;
  }

  public UpdateAccountProfileResponse updateAccountProfile(UpdateAccountProfile updateAccountProfile) {
    CustomAccountProfileBean accountProfile = new CustomAccountProfileBean(updateAccountProfile.getProfileData());
    CustomAccountProfileBean param;
    try {
      param = mgr.updateAccountProfile(accountProfile);
    } catch (DAOException e) {
      logger.debug("", e);
      throw new RuntimeException(e);
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.