Exemple #1
0
  public void alter(String query) {
    try {
      db.alterTable(query); // "ALTER INTO 	

    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
Exemple #2
0
  public String insert(String query) {
    String info = null;
    try {
      info = db.insert(query); // "INSERT INTO 	

    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return info;
  }
Exemple #3
0
  public String getResult(String query, String style) {
    String xml = null;
    try {
      xml = db.getItems(query, style); // "SELECT num, addr FROM streetaddr ORDER BY num");		

    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return xml;
  }
Exemple #4
0
 public Application() {
   db = DerbyDb.getInstance();
 }