public void add(Ontology o) throws SQLException { Statement stm = DBConnection.conn.createStatement(); stm.executeUpdate("INSERT INTO Ontology VALUES ('" + o.getPrefix() + "','" + o.getUri() + "')"); stm.close(); }
public void atualizaOntology(Ontology o) throws SQLException { Statement stm = DBConnection.conn.createStatement(); stm.executeUpdate( "UPDATE Recordes SET prefix=\"" + o.getPrefix() + "\"" + "WHERE uri=\"" + o.getUri() + "\""); stm.close(); }