PersistenceBroker pb)
throws LockingException
{
LockMap lockMap = tx.getKit().getLockMap();
ObjectLock objectLock = lockMap.getLock(oid);
TransactionIsolation isolation;
isolation = IsolationFactory.getIsolationLevel(pb, objectLock);
if (lock == LockType.READ_LOCK)
{
isolation.readLock(tx, objectLock);
}
else if (lock == LockType.WRITE_LOCK)
{
isolation.writeLock(tx, objectLock);
}
}