Examples of District


Examples of com.eatle.persistent.pojo.foundation.place.District

  }

  @Override
  public void findAllFatherById(long id, StringBuffer fatherStr)
  {
    District district = findById(id);
    if(district != null)
    {
      fatherStr.append(district.getName() + ";");
      if(district.getParentId() != null)
      {
        findAllFatherById(district.getParentId(), fatherStr);
      }
    }
  }
View Full Code Here

Examples of com.lbslocal.cc.objects.v4.addressFinder.District

            for (int intI = pg.getRecordsInitial(); intI <= pg.getRecordsFinal(); intI++) {
              // classe district
              if (rs1.absolute(intI)) {
                dl[iCount] = new DistrictLocation();

                dl[iCount].setDistrict(new District());
                dl[iCount].getDistrict().setName(rs1.getString("NOME"));

                dl[iCount].getDistrict().setCity(new City());
                dl[iCount].getDistrict().getCity().setName(rs1.getString("CIDADE"));
                dl[iCount].getDistrict().getCity().setState(rs1.getString("UF"));
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.pojo.District

            + "district.csv"));
        LOG.debug("\nWriting District file to: "
            + fileLocation + "district.csv");
      }

      District district = new District();

      t = (whseKount * distWhseKount);
      LOG.debug("\nStart District Data for " + t + " Dists @ "
          + now + " ...");

View Full Code Here

Examples of domain.District

                values += ";" + district.getId() + ";" + district;
            }
        }else if (streetId != null && building != null && !building.isEmpty()) {
            AddressObject ao = CH.getOptional(getDao(), AddressObject.class, streetId);
            if (ao != null){
                District defaultDistrict = AddressManager.getDefaultDistrict(getDao(), ao.getId(), building);
//            values += defaultDistrict.getId() + ";" + defaultDistrict + "=";
//            values += defaultDistrict.getLpu().getId() + ";" + defaultDistrict.getLpu() + "=";
//            List<District> districts = getDao().getDistrictList(defaultDistrict.getLpu());
//            for (District district : districts) {
                if (defaultDistrict != null){
                    values += defaultDistrict.getId() + ";" +
                             defaultDistrict.getLpu().getId() + ";" +
                             defaultDistrict.getLpu() + " участок: " + defaultDistrict;
                }
            }
//            }
        }
View Full Code Here

Examples of domain.District

        }
        return districts;
    }

    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

Examples of domain.District

            ur.setAddress(getDao().getById(Address.class, address));
        } catch (Exception ex) {
            errors.rejectValue("area", "register.wrongaddress");
            return showForm(request, errors, getFormView());
        }
        District defaultDistrict = AddressManager.getDefaultDistrict(getDao(), urdto.getStreet(), urdto.getBuilding());
        ur.setDistrict(defaultDistrict);
        ur.setSurname(urdto.getSurname());
        ur.setName(urdto.getName());
        ur.setPatronymic(urdto.getPatronymic());
        ur.setOms(urdto.getOms());
View Full Code Here

Examples of org.apache.derbyTesting.system.oe.model.District

            rs.next();
            customer.setData(rs.getString("C_DATA_200"));
            reset(pyCustomerGetData);
        }

        District district = new District();
        district.setWarehouse(w);
        district.setId(d);

        // Update DISTRICT
        pyDistrictUpdate.setString(1, amount);
        pyDistrictUpdate.setShort(2, w);
        pyDistrictUpdate.setShort(3, d);
        pyDistrictUpdate.executeUpdate();
        reset(pyDistrictUpdate);

        // Get the required information from DISTRICT
        pyDistrictInfo.setShort(1, w);
        pyDistrictInfo.setShort(2, d);
        rs = pyDistrictInfo.executeQuery();
        rs.next();
        district.setName(rs.getString("D_NAME"));
        district.setAddress(getAddress(rs, "D_STREET_1"));
        reset(pyDistrictInfo);       
       
        Warehouse warehouse = new Warehouse();
        warehouse.setId(w);
       
        // Update WAREHOUSE
        pyWarehouseUpdate.setString(1, amount);
        pyWarehouseUpdate.setShort(2, w);
        pyWarehouseUpdate.executeUpdate();
        reset(pyWarehouseUpdate);
       
        // Get the required information from WAREHOUSE
        pyWarehouseInfo.setShort(1, w);
        rs = pyWarehouseInfo.executeQuery();
        rs.next();
        warehouse.setName(rs.getString("W_NAME"));
        warehouse.setAddress(getAddress(rs, "W_STREET_1"));
        reset(pyWarehouseInfo);
        
        // Insert HISTORY row
        pyHistory.setInt(1, c);
        pyHistory.setShort(2, cd);
        pyHistory.setShort(3, cw);
        pyHistory.setShort(4, d);
        pyHistory.setShort(5, w);
        pyHistory.setString(6, amount);
        StringBuffer hData = new StringBuffer(24);
        hData.append(warehouse.getName());
        hData.append("    ");
        hData.append(district.getName());
        pyHistory.setString(7, hData.toString());
        pyHistory.executeUpdate();
        reset(pyHistory);
       
        conn.commit();
View Full Code Here

Examples of org.bitbucket.andyrobr.clever.models.District

        List<District> districts = clever.getDistricts();

        assertNotNull(districts);
        assertTrue(districts.size() == 1);

        District a = districts.get(0);

        assertNotNull(a);

        District b = clever.getDistrict(a.getId());

        assertNotNull(b);
        assertEquals(a, b);
    }
View Full Code Here

Examples of org.bitbucket.andyrobr.clever.models.District

        assertNotNull(schools);
        assertTrue(schools.size() == 1);

        List<District> districts = clever.getDistricts();
        District district = districts.get(0);

        List<School> schoolsInDistrict = clever.getSchoolsFromDistrict(district.getId());

        assertNotNull(schoolsInDistrict);
        assertTrue(schoolsInDistrict.size() == 1);

        assertEquals(schoolsInDistrict.get(0), schools.get(0));
View Full Code Here

Examples of org.bitbucket.andyrobr.clever.models.District

    }

    @Test
    public void testGetTeachersFromDistrict() throws Exception
    {
        District district = clever.getDistricts().get(0);

        List<Teacher> teachers = clever.getTeachersFromDistrict(district.getId());

        assertNotNull(teachers);
        assertTrue(teachers.size() == 1);

        District teacherDistrict = clever.getDistrictFromTeacher(teachers.get(0).getId());

        assertEquals(district, teacherDistrict);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.