Example #1
0
 public static void main(String[] args) {
   Populate pobj = new Populate();
   pobj.getConnection(args[0]);
   pobj.clearTables();
   pobj.populateNavigationAid(args[1]);
   pobj.populateResrictedNavigation(args[2]);
   pobj.populateFlights(args[3]);
   pobj.closeConnection();
 }
Example #2
0
  /**
   * If the server class has a static method called gerServerProperties the default properties will
   * be used to create the list with default values. If this is the case the gui will not allow
   * deletion of properties or allowing to add additional properties. If the server class do not
   * have any
   *
   * @param servername
   */
  public static void edit(String servername) {
    XMLServers serversconfig = getCache();
    Iterator<XMLServer> servers = serversconfig.getServer().iterator();

    while (servers.hasNext()) {
      XMLServer server = servers.next();

      if (server.getName().equals(servername)) {

        List<String> serverclasses = Populate.getServerClasses();

        boolean hasdefaultproperties = replaceServerProperties(server);

        render(server, serverclasses, hasdefaultproperties);
      }
    }
    render();
  }
Example #3
0
 public static void add() {
   List<String> serverclasses = Populate.getServerClasses();
   render(serverclasses);
 }