1 package org.apache.ojb.odmg.locking; 2 3 17 18 import org.apache.ojb.odmg.TransactionImpl; 19 20 25 public interface LockStrategy 26 { 27 28 35 public boolean readLock(TransactionImpl tx, Object obj); 36 37 44 public boolean writeLock(TransactionImpl tx, Object obj); 45 46 53 public boolean upgradeLock(TransactionImpl tx, Object obj); 54 55 62 public boolean releaseLock(TransactionImpl tx, Object obj); 63 64 70 public boolean checkRead(TransactionImpl tx, Object obj); 71 72 78 public boolean checkWrite(TransactionImpl tx, Object obj); 79 } 80 | Popular Tags |