@Override public void addAddress(AddressVO address, String userId) { try { address.setCountryId(1); address.setIsActive("y"); addressDao.addAddress(address, userId); } catch (SapeStoreException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public Integer getCityIdByName(String cityName) { return addressDao.getCityIdByName(cityName); }
@Override public Address getAddressById(Integer addressId) { return addressDao.getAddressById(addressId); }
@Override public List<Address2> getAddress(String userId) { return addressDao.retrieveFromId(userId); }
@Override public List<State> getStates() throws SapeStoreException { return addressDao.getStateList(); }
@Override public List<City> getCities() throws SapeStoreException { // TODO Auto-generated method stub return addressDao.getCityList(); }