Package com.cin.dto

Examples of com.cin.dto.JobDTO


 
  public UserDTO addUser(UserDTO user){
    Userrecord userEjb = user.toEJB();
    if( userEjb.getJob() != null ){
      // TODO finish this
      JobDTO jobDto = user.getJobDetails();
      if( jobDto.getIndustryCode() != 0 ){
        //userEjb.getJob().setIndustry(getIndustryByCode());
      }
      if( jobDto.getOccupationCode() != 0 ){
        //userEjb.getJob().setgetOccupation(getgetOccupationByCode());
      }
    }
    persist(userEjb);
    return new UserDTO(userEjb);
View Full Code Here


      stmt.setInt(1, ssn);
      stmt.execute();
     
      ResultSet rs = stmt.getResultSet();
      if( rs.next() ){
        JobDTO dto = new JobDTO();
        dto.setEmployerSize(rs.getInt("employersize"));
        dto.setIndustryCode(rs.getInt("industrycode"));
        dto.setOccupationCode(rs.getInt("occupationcode"));
        dto.setSelfEmployed(rs.getInt("selfemployed"));
        dto.setUnionMember(rs.getString("unionmember"));
        dto.setWeekWage(rs.getInt("weekwage"));
        dto.setWorkClass(rs.getString("workclass"));
        dto.setWorkWeeks(rs.getInt("workweeks"));
        return dto;
      } else {
        return null;
      }
    }finally{
View Full Code Here

TOP

Related Classes of com.cin.dto.JobDTO

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.