Examples of ZipDTO


Examples of com.cin.dto.ZipDTO

 
  public ZipDTO findStateForZip(int pZip) {
    Query query = manager.createQuery(
    "SELECT z  from Ziptable z where z.zip = " + pZip);
    Ziptable aZipEntity = (Ziptable)query.getSingleResult();
    ZipDTO zip = new ZipDTO(aZipEntity);
   
    return zip;
  }
View Full Code Here

Examples of com.cin.dto.ZipDTO

  }

public List<ZipDTO> translateToZipDTO(Collection<?> pZipEntity) {
 
    List<ZipDTO> theZipDTO = new ArrayList<ZipDTO>();
    ZipDTO aDTO = null;
    for(Object aZiptable : pZipEntity) {
     
      aDTO = new ZipDTO((Ziptable)aZiptable);
      theZipDTO.add(aDTO);
    }
      return theZipDTO; 
  }
View Full Code Here

Examples of com.cin.dto.ZipDTO

     
      throw new MissingInformationException("Location information is missing for user.Update the info and calculate the factor");
    }
    if(user.getJobDetails() != null) {
     
      ZipDTO zip = aRemote.findStateForZip(Integer.parseInt(user.getZipCode()));
     
      if(zip != null) {
     
        aUserStateStats.setState(zip.getState());
      }
      aUserStateStats.setIndustryCode(user.getJobDetails().getIndustryCode());
      aUserStateStats.setOccCode(user.getJobDetails().getOccupationCode());
    }
    GenericResponse aResponse = aStatsService.calculateWeeklyWage(aUserStateStats);
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.