Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.CreditcardRequests


    String name = principal.getName();
    ExternalAccount currentuser = extBo.findAccountByName(name);

    // Query the credit card request stable to find the request for the account number
    CreditcardRequests creditCardCheck = ccreqsBo.checkForCreditCardNumber(currentuser.getAccountNo());

    //if user populate with row
    if(creditCardCheck != null)
    {
      ModelAndView modelAndView = new ModelAndView("IndividualUserCreditCardRequest");

      modelAndView.addObject("creditCard", creditCardCheck);

      return modelAndView;
    }
    //If no credit new request and add to credit card request
    else{


      CreditcardRequests creditCardNewRequest = new CreditcardRequests();

      creditCardNewRequest.setApproved("no");

      creditCardNewRequest.setAccountNo(currentuser.getAccountNo());

      ccreqsBo.save(creditCardNewRequest);

      ModelAndView modelAndView = new ModelAndView("IndividualUserCreditCardRequest");
View Full Code Here


     String name = principal.getName();
      ExternalAccount currentuser = externalAccountBO.findAccountByName(name);
    
     
      // Query the credit card request stable to find the request for the account number
      CreditcardRequests creditCardCheck = ccreqsBo.checkForCreditCardNumber(currentuser.getAccountNo());
     
     //if user populate with row
      if(creditCardCheck != null)
      {
        ModelAndView modelAndView = new ModelAndView("MerchantCreditCardRequest");
       
        modelAndView.addObject("creditCard", creditCardCheck);
    
           return modelAndView;
      }
      //If no credit new request and add to credit card request
      else{
       
       
          CreditcardRequests creditCardNewRequest = new CreditcardRequests();
     
          creditCardNewRequest.setApproved("no");
       
          creditCardNewRequest.setAccountNo(currentuser.getAccountNo());
       
        ccreqsBo.save(creditCardNewRequest);
       
        ModelAndView modelAndView = new ModelAndView("MerchantCreditCardRequest");
       
View Full Code Here

      System.out.println("accountNo: "+ accountNo);
   
     
      Query q = session.createQuery("from CreditcardRequests where accountNo = :accountNo ");
      q.setParameter("accountNo", accountNo);
      CreditcardRequests ccreq = (CreditcardRequests)q.list().get(0);
      session.delete(ccreq);
      logger.info("Credit Cards Request -- Rejected -- Account No " + accountNo);
        System.out.println("delete successful");
      } catch (RuntimeException re) {
        System.out.println("delete failed");
View Full Code Here

    Query q = session.createQuery("from CreditcardRequests where accountNo = :accountNo ");
    q.setParameter("accountNo", accountNumber);
    logger.info("Credit Cards Request -- Checked -- Account No " + accountNumber);
    if(q.list().size()>0)
    {
    CreditcardRequests ccreq = (CreditcardRequests)q.list().get(0);
    return ccreq;
    }
    else
      return null;
   
View Full Code Here

TOP

Related Classes of edu.asu.securebanking.model.CreditcardRequests

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.