protected boolean shouldClose(PooledConnection con,int action){
  if (con.getConnectionVersion() < getPoolVersion())   return true;
  if (con.isDiscarded())   return true;
  if (isClosed())   return true;
  if (!con.validate(action))   return true;
  if (!terminateTransaction(con))   return true;
  if (con.isMaxAgeExpired())   return true;
 else   return false;
}

protected boolean shouldClose ( PooledConnection con , int action ) { if ( con . getConnectionVersion ( ) < getPoolVersion ( ) ) return true ; if ( con . isDiscarded ( ) ) return true ; if ( isClosed ( ) ) return true ; if ( ! con . validate ( action ) ) return true ; if ( ! terminateTransaction ( con ) ) return true ; if ( con . isMaxAgeExpired ( ) ) return true ; else return false ; }
determines if a connection should be closed upon return to the pool .
