Package edu.asu.securebanking.businessobjectImpl

Source Code of edu.asu.securebanking.businessobjectImpl.OTPBOImpl

package edu.asu.securebanking.businessobjectImpl;

import edu.asu.securebanking.businessobject.CreateInternalAccountBO;
import edu.asu.securebanking.businessobject.OTPBO;
import edu.asu.securebanking.dataaccessobject.CreateInternalAccountDao;
import edu.asu.securebanking.dataaccessobject.OTPDao;
import edu.asu.securebanking.model.ExternalAccount;
import edu.asu.securebanking.model.InternalAccount;
import edu.asu.securebanking.model.OTP;


public class OTPBOImpl implements OTPBO {

  OTPDao OTPDao;
  
  public void setOTPDao (OTPDao  OTPDao) {
    this.OTPDao = OTPDao;
  }

  @Override
  public void save(OTP OTP) {
    // TODO Auto-generated method stub
    OTPDao.save(OTP);
  }

  @Override
  public void update(OTP OTP) {
    // TODO Auto-generated method stub
    OTPDao.update(OTP);
  }

  @Override
  public void delete(OTP OTP) {
    // TODO Auto-generated method stub
    OTPDao.delete(OTP);
  }

  @Override
  public OTP findAccountByName(int userid, int empid) {
    // TODO Auto-generated method stub
    OTP result = OTPDao.findAccountByNameExternal(userid, empid);

    if(result == null){
      return null;
    }

    return result;
  }



}
TOP

Related Classes of edu.asu.securebanking.businessobjectImpl.OTPBOImpl

TOP
Copyright © 2018 www.massapi.com. 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.