public boolean isHeldByCurrentThread(String lockName, int lockLevel) { if (isTransactionLoggingDisabled()) { return true; } final LockID lockID = lockManager.lockIDFor(lockName); return lockManager.localHeldCount(lockID, lockLevel) > 0; }
public int localHeldCount(String lockName, int lockLevel) { final LockID lockID = lockManager.lockIDFor(lockName); return lockManager.localHeldCount(lockID, lockLevel); }