private boolean closeAll ( Context context ) { boolean unclosed = false ; CloseConnectionSynchronization ccs = getCloseConnectionSynchronization ( true ) ; for ( org . ironjacamar . core . connectionmanager . ConnectionManager cm : context . getConnectionManagers ( ) ) { for ( org . ironjacamar . core . connectionmanager . listener . ConnectionListener cl : context . getConnectionListeners ( cm ) ) { for ( Object c : context . getConnections ( cl ) ) { if ( ccs == null ) { unclosed = true ; if ( Tracer . isEnabled ( ) ) { Tracer . closeCCMConnection ( cl . getManagedConnectionPool ( ) . getPool ( ) . getConfiguration ( ) . getId ( ) , cl . getManagedConnectionPool ( ) , cl , c , context . toString ( ) ) ; } closeConnection ( c ) ; } else { ccs . add ( c ) ; } } } } return unclosed ; }
Close all connections for a context