public void alter(String query) { try { db.alterTable(query); // "ALTER INTO } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
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; }
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; }
public Application() { db = DerbyDb.getInstance(); }