- Common ways to obtain Result
private void myMethod () {Result r =
Connection connection;Query query;connection.execute(query)
- Smart code suggestions by Codota
}
public void close() { if ( result != null ) { try { result.close(); } catch ( Exception ignored ) {
public void close() { underlying.close(); } }
public void close() { if (closed) { return; } this.closed = true; final ProfileHandler profileHandler = olap4jStatement.getProfileHandler(); if (profileHandler != null) { final StringWriter stringWriter = new StringWriter(); final PrintWriter printWriter = new PrintWriter(stringWriter); olap4jStatement.getQuery().explain(printWriter); printWriter.close(); profileHandler.explain(stringWriter.toString(), getQueryTiming()); } if (this.result != null) { this.result.close(); } olap4jStatement.onResultSetClose(this); }
public void close() { if (result != null) { result.close(); result = null; } }