핵심 : for 문에서 countryList 루프를 돌때
countryVO.setCarriers 하면 countryList에 추가하여 countryList.get(0).getCarriers() 값이 추가된다
주소값을 전달해서 그런거 같다
예제)
List<CountryVO> countryList = DAO.getCountry(ID);
List<String> countryCodeList = new ArrayList<String>();
if ( countryList != null ) {
for ( CountryVO countryVO : countryList )
{
if ( countryVO.getCarrierCount() > 0 ) {
countryVO.setCarriers(this.DAO.getCountryCarriersNew(CountryVO.getCountryCode(), CountryVO.getID()));
}
}
}
'JAVA' 카테고리의 다른 글
Http 송수신 HttpClient (0) | 2013.06.28 |
---|---|
[출처] System.getProperty(시스템 환경변수)|작성자 joypheonix (0) | 2013.06.26 |
[펌]xpath 를 이용, java 에서 xml 문서 쉽게 파싱하기 (0) | 2013.06.13 |
Log4j 로그 두번찍히는 문제 (0) | 2013.06.05 |
로그 성능 관련 isDebugEnabled (0) | 2013.06.04 |