Examples of Wage


Examples of com.cin.entity.Wage

  public int getMeanWage(WageDTO wageDTO) {
    WagePK key = new WagePK();
    key.setIndustrycode(wageDTO.getIndustryCode());
    key.setOccupationcode(wageDTO.getOccupationCode());
   
    Wage wage = manager.find(Wage.class, key);
    if( wage == null ){
      throw new RuntimeException("Requested wage info not found.");
    } else {
      return wage.getMeanweekwage();
    }
  }
View Full Code Here

Examples of com.cin.entity.Wage

  public void setMeanWage(WageDTO wageDTO) {
    WagePK key = new WagePK();
    key.setIndustrycode(wageDTO.getIndustryCode());
    key.setOccupationcode(wageDTO.getOccupationCode());
   
    Wage wage = manager.find(Wage.class, key);
    if( wage == null ){
      wage = new Wage();
      wage.setIndustrycode(wageDTO.getIndustryCode());
      wage.setOccupationcode(wageDTO.getOccupationCode());
      wage.setMeanweekwage(wageDTO.getMeanWeekWage());
      persist(wage);
    } else {
      wage.setMeanweekwage(wageDTO.getMeanWeekWage());
      update(wage);
    }
  }
View Full Code Here
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.