public static boolean isConnected(boolean createNew){
  if (s_cc == null)   return false;
  boolean success=false;
  CLogErrorBuffer eb=CLogErrorBuffer.get(false);
  if (eb != null && eb.isIssueError())   eb.setIssueError(false);
 else   eb=null;
  try {
    Connection conn=getConnectionRW(createNew);
    if (conn != null) {
      conn.close();
    }
    success=(conn != null);
  }
 catch (  Exception e) {
    success=false;
  }
  if (eb != null)   eb.setIssueError(true);
  return success;
}

public static boolean isConnected ( boolean createNew ) { if ( s_cc == null ) return false ; boolean success = false ; CLogErrorBuffer eb = CLogErrorBuffer . get ( false ) ; if ( eb != null && eb . isIssueError ( ) ) eb . setIssueError ( false ) ; else eb = null ; try { Connection conn = getConnectionRW ( createNew ) ; if ( conn != null ) { conn . close ( ) ; } success = ( conn != null ) ; } catch ( Exception e ) { success = false ; } if ( eb != null ) eb . setIssueError ( true ) ; return success ; }
is there a connection to the database ?
