List<AddressFolder> folderList = this.userAccountDao.retrieveAddressFolders( account );
AddressFolder addressFolder = folderList.get( 0 );
for (int i = 0; i < alpha.length(); i++) {
char begin = alpha.charAt( i );
for (int j = 1; j < 2; j++) {
Address address = this.applicationContext.getBean( Address.class );
address.setFirstName( begin + "firstName" + j );
address.setMiddleName( begin + "middleName" + j );
address.setLastName( begin + "lastName" + j );
address.setTitle( begin + "title" + j );
address.setBirthDate( new Date() );
address.setCompany( begin + "company" + j );
address.setPosition( begin + "position" + j );
address.setDepartment( begin + "department" + j );
address.setEmail( begin + "email" + j );
if ( (i % 2) == 0 ) {
address.setEmail2( begin + "email2" + j );
address.setEmail3( begin + "email3" + j );
address.setEmail4( begin + "email4" + j );
address.setEmail5( begin + "email5" + j );
}
address.setIm( begin + "im" + j );
address.setUrl( begin + "url" + j );
address.setPrivatePhone( begin + "privatePhone" + j );
address.setWorkPhone( begin + "workPhone" + j );
address.setPrivateMobile( begin + "privateMobile" + j );
address.setWorkMobile( begin + "workMobile" + j );
address.setPrivateFax( begin + "privateFax" + j );
address.setWorkFax( begin + "workFax" + j );
address.setPager( begin + "pager" + j );
address.setPrivateStreet( begin + "privateStreet" + j );
address.setPrivateZipcode( begin + "privateZipcode" + j );
address.setPrivateCity( begin + "privateCity" + j );
address.setPrivateState( begin + "privateState" + j );
address.setPrivateCountry( begin + "privateCountry" + j );
if ( (i % 2) == 0 ) {
address.setWorkStreet( begin + "workStreet" + j );
address.setWorkZipcode( begin + "workZipcode" + j );
address.setWorkCity( begin + "workCity" + j );
address.setWorkState( begin + "workState" + j );
address.setWorkCountry( begin + "workCountry" + j );
}
address.setNotes( begin + "notes" + j );
address.setAddressFolder( addressFolder );
this.userAccountDao.saveAddress( address );
}
}
}