protected void closeDatabase() { if (this.conn_ != null) { try { conn_.close(); } catch (SQLException e) { } } }
public void endDocument() throws SAXException { // System.out.println("endDocument()"); try { conn_.commit(); closeDatabase(); } catch (SQLException sqle) { throw new SAXException(sqle.toString()); } }
protected void openDatabase() throws LoadException { try { conn_ = DriverManager.getConnection("jdbc:postgresql://localhost/transmem", "tm", "yi4ku4wh3"); conn_.setAutoCommit(false); } catch (SQLException se) { throw new LoadException("SQLException occurred: " + se.getMessage()); } }