public boolean checkRead ( TransactionImpl tx , Object obj ) { if ( hasReadLock ( tx , obj ) ) { return true ; } LockEntry writer = getWriter ( obj ) ; if ( writer . isOwnedBy ( tx ) ) { return true ; } return false ; }
checks whether the specified Object obj is read - locked by Transaction tx .