/** * Closes the query and all created results sets and detaches itself from the session. */ @Override @SuppressWarnings({"ClassReferencesSubclass"}) public void close() { final SQLException sqlException = closeQuery(); connection = null; if (this.session != null) { this.session.detachQuery(this); } if (sqlException != null) { throw new DbSqlException("Close query error", sqlException); } }
/** * Closes the query and all created results sets and detaches itself from the session. */ @SuppressWarnings({"ClassReferencesSubclass"}) public void close() { List<SQLException> sexs = closeQuery(); connection = null; if (this.session != null) { this.session.detachQuery(this); } if (sexs != null) { throw new DbSqlException("Unable to close query.", sexs); } }
/** * Closes the query and all created results sets and detaches itself from the session. */ @Override @SuppressWarnings({"ClassReferencesSubclass"}) public void close() { final SQLException sqlException = closeQuery(); connection = null; if (this.session != null) { this.session.detachQuery(this); } if (sqlException != null) { throw new DbSqlException("Close query error", sqlException); } }