public void waitIfExclusiveModeEnabled(){
  if (database.getLobSession() == this) {
    return;
  }
  while (true) {
    Session exclusive=database.getExclusiveSession();
    if (exclusive == null || exclusive == this) {
      break;
    }
    if (Thread.holdsLock(exclusive)) {
      break;
    }
    try {
      Thread.sleep(100);
    }
 catch (    InterruptedException e) {
    }
  }
}

public void waitIfExclusiveModeEnabled ( ) { if ( database . getLobSession ( ) == this ) { return ; } while ( true ) { Session exclusive = database . getExclusiveSession ( ) ; if ( exclusive == null || exclusive == this ) { break ; } if ( Thread . holdsLock ( exclusive ) ) { break ; } try { Thread . sleep ( 100 ) ; } catch ( InterruptedException e ) { } } }
wait if the exclusive mode has been enabled for another session . this method returns as soon as the exclusive mode has been disabled .
