Package services.utils

Examples of services.utils.DistrictConvertor


    private DAO dao;

    public List<DistrictConvertor> getDistrictList(int lpuId){
        ArrayList<DistrictConvertor> districts = new ArrayList<DistrictConvertor>();
        districts.add(new DistrictConvertor());
        Lpu lpu = getDao().getById(Lpu.class, lpuId);
        if (lpu != null){
            List<District> districtList = getDao().getDistrictList(lpu);
            for (District district : districtList) {
                districts.add(new DistrictConvertor(district));
            }
        }
        return districts;
    }
View Full Code Here


    public DistrictConvertor getDefaultDistrict(int streetId, String building){
        District district = AddressManager.getDefaultDistrict(getDao(), streetId, building);
        if (district != null){
            Lpu lpu = district.getLpu();
            DistrictConvertor dc = new DistrictConvertor(district);
            dc.setLpu(new LpuConvertor(lpu));
            return dc;
        }else{
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of services.utils.DistrictConvertor

Copyright © 2018 www.massapicom. 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.