Package com.cin.entity

Examples of com.cin.entity.Investment


  public void setStockDividends(int stockDividends) {
    this.stockDividends = stockDividends;
  }
 
  public Investment toEJB(int ssn){
    Investment ejb = new Investment();
    ejb.setCapitalgains(capitalGains);
    ejb.setCapitallosses(capitalLosses);
    ejb.setSsn(ssn);
    ejb.setStockdividends(stockDividends);
    return ejb;
  }
View Full Code Here


      update(ejb);
    }
  }

  public void updateUserInvestment(UserDTO user){
    Investment ejb = manager.find(Investment.class, user.getSsn());
    if( ejb == null ){
      ejb = user.getInvestmentDetails().toEJB(user.getSsn());
      persist(ejb);
    } else {
      ejb.setCapitalgains(user.getInvestmentDetails().getCapitalGains());
      ejb.setCapitallosses(user.getInvestmentDetails().getCapitalLosses());
      ejb.setStockdividends(user.getInvestmentDetails().getStockDividends());
      update(ejb);
    }
  }
View Full Code Here

TOP

Related Classes of com.cin.entity.Investment

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.