jodd-db/src/main/java/jodd/db/DbQueryBase.java
@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);
		}
	}
@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.