CountryNameROVOImpl countryVO = this.getCountryNameROVO();
CountryNameROVORowImpl countryRow = null;
countryVO.applyViewCriteria(null);
countryVO.setApplyViewCriteriaName("CountryNameROVOCriteria");
countryVO.setBindCountryId(ccDTO.getCountry_code());
countryVO.executeQuery();
while(countryVO.hasNext()){
CountryCodeResponseDTO countryDTO=new CountryCodeResponseDTO();
countryRow=(CountryNameROVORowImpl) countryVO.next();
countryDTO.setCountry_name(countryRow.getCountryName());
nameResponse.add(countryDTO);
}
CountryNameROVORowImpl countryRow = null;
countryVO.applyViewCriteria(null);
countryVO.setApplyViewCriteriaName("CountryNameROVOCriteria");
countryVO.setBindCountryId(ccDTO.getCountry_code());
countryVO.executeQuery();
while(countryVO.hasNext()){
CountryCodeResponseDTO countryDTO=new CountryCodeResponseDTO();
countryRow=(CountryNameROVORowImpl) countryVO.next();
countryDTO.setCountry_name(countryRow.getCountryName());
nameResponse.add(countryDTO);
}
No comments:
Post a Comment