if(log.isDebugEnabled()) { log.debug("executeUpdate: " + query); }
  protected int executeUpdate(String query) throws SQLException {    if (query == null) throw new IllegalArgumentException("executeUpdate: null query");    try {      long startTime = 0;      if (pwlog != null)	startTime = System.currentTimeMillis();      int result = updateStmt.executeUpdate(query);      if (pwlog != null) {	long endTime = System.currentTimeMillis();	pwlog.println((endTime - startTime) + " " + query);      }      return result;    } catch (SQLException sqle) {      if(log.isErrorEnabled()) {	log.error("SQLException query: " + query, sqle);      }      if (pwlog != null) {	pwlog.println("SQLException query: " + query);	pwlog.flush();      }      throw sqle;    }  }