protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
protected final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ return ConflictType.CONFLICT; } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
private final int lockConflict (Lock otherLock) { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")"); } boolean matching = false; Lock heldLock = null; LockListIterator next = new LockListIterator(locksHeld); while ((heldLock = next.iterate()) != null) { if (heldLock.conflictsWith(otherLock)) { if (LockManager.nestedLocking) { if (!isAncestorOf(heldLock)) /* not quite Moss's rules */ { return ConflictType.CONFLICT; } } else return ConflictType.CONFLICT; } else { if (heldLock.equals(otherLock)) matching = true; } } return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE); }
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */