Examples of Country


Examples of dao.tro.Country

            statement.setLong(1, id);
            resultSet = statement.executeQuery();
            while(resultSet.next()) {
                airport.setId(id);
                airport.setGatesNumber(resultSet.getInt("GatesNumber"));
                Country country = new Country();
                country.setId(countryId);
                country.setName(countryName);
                airport.setInCountry(country);
                airport.setName(resultSet.getString("Name"));
            }
        } catch(SQLException e) {
            Logs.info("Ошибка выборки " + e);
View Full Code Here

Examples of er.plugintest.model.Country

    public void run() {
      for (int i = 0; i < 25; i++) {
        ERXEC ec = (ERXEC) ERXEC.newEditingContext();
        ec.lock();
        try {
          Country country = Country.fetchAllCountries(ec).lastObject();
          City city = City.createCity(ec, RandomStringUtils.randomAlphabetic(15));
          city.setCountryRelationship(country);
         
          ec.saveChanges();
        } finally {
View Full Code Here

Examples of freenet.clients.http.geoip.IPConverter.Country

    HTMLNode addressRow = peerRow.addChild("td", "class", "peer-address");
    // Ip to country + Flags
    IPConverter ipc = IPConverter.getInstance(node.runDir().file(NodeUpdateManager.IPV4_TO_COUNTRY_FILENAME));
    byte[] addr = peerNodeStatus.getPeerAddressBytes();

    Country country = ipc.locateIP(addr);
    if(country != null) {
      country.renderFlagIcon(addressRow);
    }

    addressRow.addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ':' + peerNodeStatus.getPeerPort()) : (l10n("unknownAddress"))) + pingTime);

    // version column
View Full Code Here

Examples of indexing.Country

        initTeams();
    }

    private void initTeams() {
        // init Country
        Country espagne = new Country();
        espagne.name = "espagne";
        espagne.continent = "europe";

        Country france = new Country();
        france.name = "france";
        france.continent = "europe";

        // init Team
        Team barcelone = new Team();
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.labelmode.Country

public class CountryTest {

    @Test
    public void test() {
  Country command = new Country(CountryCode.italy);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("COUNTRY ITALY");

  assertCommand(output, command);
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.utility.Country

public class CountryTest {

    @Test
    public void testString() {
  Country command = new Country("USA");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("COUNTRY USA");
  output.printLn("PRINT");
View Full Code Here

Examples of net.sf.mp.demo.conference.domain.admin.Country

    @RequestMapping(method = RequestMethod.GET)
    @Transactional
  @ResponseBody
    public List<Country> findAll () {
    List<Country> r = new ArrayList<Country>();
        List<Country> l = countryDao.searchPrototypeCountry(new Country());
    for (Country country : l) {
      r.add(country.flat());
    }
    return r;
    }
View Full Code Here

Examples of org.apache.bval.jsr303.example.Country

        author.setCompany("IBM");
        author.setAddresses(new ArrayList<Address>());

        Address adr1, adr2, adr3;
        adr1 = new Address();
        adr1.setCountry(new Country());
        adr1.getCountry().setName("Germany");
        adr1.setCity("Bonn");
        adr1.setAddressline1("Strasse 1");

        adr2 = new Address();
        adr2.setCountry(new Country());
        adr2.getCountry().setName("Cuba");
        adr2.setCity("Habana");
        adr2.setAddressline1("Calle 2");

        adr3 = new Address();
        adr3.setCountry(new Country());
        adr3.getCountry().setName("USA");
        adr3.setCity("San Francisco");
        adr3.setAddressline1("Street 3");

        author.getAddresses().add(adr1);
View Full Code Here

Examples of org.apache.cayenne.testdo.persistent.Country

       
        ObjectContext context = createContext();
        Continent continent = context.newObject(Continent.class);
        continent.setName("Europe");
       
        Country country = new Country();
        context.registerNewObject(country);
       
        //TODO: setting property before object creation does not work on ROP (CAY-1320)
        country.setName("Russia");
       
        country.setContinent(continent);
        assertEquals(continent.getCountries().size(), 1);
       
        context.commitChanges();
       
        context.deleteObject(country);
View Full Code Here

Examples of org.apache.harmony.luni.internal.locale.Country

   * country code for a Locale.
   *
   * @return an array of String
   */
  public static String[] getISOCountries() {
        ListResourceBundle bundle = new Country();

        // To initialize the table
        Enumeration<String> keys = bundle.getKeys();
        int size = bundle.table.size();
        String[] result = new String[size];
        int index = 0;
        while (keys.hasMoreElements()) {
            String element = keys.nextElement();
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.