jodd-db/src/main/java/jodd/db/DbSession.java
public void closeSession() {
		log.debug("Closing db session");

		SQLException sqlException = null;

		if (queries != null) {
			for (DbQueryBase query : queries) {
				SQLException sex = query.closeQuery();
				if (sex != null) {
					if (sqlException == null) {
						sqlException = sex;
					} else {
						sqlException.setNextException(sex);
					}
				}
			}
		}
		if (connection != null) {
			if (txActive) {
				throw new DbSqlException("TX was not closed before closing the session");
			}
			connectionProvider.closeConnection(connection);
			connection = null;
		}
		queries = null;
		if (sqlException != null) {
			throw new DbSqlException("Closing DbSession failed", sqlException);
		}
	}
public void closeSession() {
		log.debug("Closing db session");

		SQLException sqlException = null;

		if (queries != null) {
			for (DbQueryBase query : queries) {
				SQLException sex = query.closeQuery();
				if (sex != null) {
					if (sqlException == null) {
						sqlException = sex;
					} else {
						sqlException.setNextException(sex);
					}
				}
			}
		}
		if (connection != null) {
			if (txActive) {
				throw new DbSqlException("TX was not closed before closing the session");
			}
			connectionProvider.closeConnection(connection);
			connection = null;
		}
		queries = null;
		if (sqlException != null) {
			throw new DbSqlException("Closing DbSession failed", sqlException);
		}
	}
public void closeSession ( ) { log . debug ( "Closing db session" ) ; SQLException sqlException = null ; if ( queries != null ) { for ( DbQueryBase query : queries ) { SQLException sex = query . closeQuery ( ) ; if ( sex != null ) { if ( sqlException == null ) { sqlException = sex ; } else { sqlException . setNextException ( sex ) ; } } } } if ( connection != null ) { if ( txActive ) { throw new DbSqlException ( "TX was not closed before closing the session" ) ; } connectionProvider . closeConnection ( connection ) ; connection = null ; } queries = null ; if ( sqlException != null ) { throw new DbSqlException ( "Closing DbSession failed" , sqlException ) ; } }
Closes current session and all allocated resources.
All attached queries are closed. If a transaction is still active, exception occurs.
Database connection is returned to the {@link ConnectionProvider}.
Closed session is no longer available for usage.
Closes current session and all allocated resources . All attached queries are closed . If a transaction is still active exception occurs . Database connection is returned to the {