/** * Verify that we have a valid connection. * * @param JO_Db_Adapter_Abstract $adapter * @return boolean * @throws JO_Db_Exception */ public function isConnected(JO_Db_Adapter_Abstract $adapter) { try { return $adapter->getConnection() ? true : false; } catch (JO_Exception $e) { return false; //throw new JO_Db_Exception($e->getMessage()); } }