@Override public void close() throws IOException { super.close(); // we don't need to close the delegate readers because they share the same result set // and connection as this reader }
@Override protected void finalize() throws Throwable { if (dataStore != null) { LOGGER.warning( "There is code leaving feature readers/iterators open, this is leaking statements and connections!"); if (TRACE_ENABLED) { LOGGER.log( Level.WARNING, "The unclosed reader originated on this stack trace", tracer); } close(); } }
public void close() throws IOException { super.close(); if (last != null) { last.close(); last = null; } } }
public void close() throws IOException { try { flush(); } finally { super.close(); } } }
void runQuery(QueryRunner runner, Statement st) throws SQLException { callback.beforeQuery(st); try { rs = runner.run(); callback.afterQuery(st); } catch (Exception e1) { callback.queryError(e1); // make sure to mark as closed, otherwise we are going to log that it was not try { close(); } catch (IOException e2) { LOGGER.log(Level.FINE, "Failed to close the reader, moving on", e2); } throw new SQLException(e1); } }
@Override public void close() throws IOException { super.close(); //we don't need to close the delegate readers because they share the same result set // and connection as this reader }
@Override protected void finalize() throws Throwable { if(dataStore != null) { LOGGER.warning("There is code leaving feature readers/iterators open, this is leaking statements and connections!"); if(TRACE_ENABLED) { LOGGER.log(Level.WARNING, "The unclosed reader originated on this stack trace", tracer); } close(); } }
@Override protected void finalize() throws Throwable { if(dataStore != null) { LOGGER.warning("There is code leaving feature readers/iterators open, this is leaking statements and connections!"); if(TRACE_ENABLED) { LOGGER.log(Level.WARNING, "The unclosed reader originated on this stack trace", tracer); } close(); } }
public void close() throws IOException { super.close(); if ( last != null ) { last.close(); last = null; } } }
public void close() throws IOException { super.close(); if ( last != null ) { last.close(); last = null; } } }
public void close() throws IOException { super.close(); if ( last != null ) { last.close(); last = null; } } }
public void close() throws IOException { super.close(); if ( last != null ) { last.close(); last = null; } } }