1 package org.apache.ojb.odmg.locking; 2 3 17 18 import org.apache.ojb.odmg.TransactionImpl; 19 import org.apache.ojb.broker.Identity; 20 21 32 public interface LockManager 33 { 34 38 public abstract boolean readLock(TransactionImpl tx, Object obj); 39 40 44 public abstract boolean readLock(TransactionImpl tx, Identity oid, Object obj); 45 46 47 51 public abstract boolean writeLock(TransactionImpl tx, Object obj); 52 53 57 public abstract boolean writeLock(TransactionImpl tx, Identity oid, Object obj); 58 59 60 65 public abstract boolean upgradeLock(TransactionImpl tx, Object obj); 66 67 72 public abstract boolean upgradeLock(TransactionImpl tx, Identity oid, Object obj); 73 74 75 79 public abstract boolean releaseLock(TransactionImpl tx, Object obj); 80 81 85 public abstract boolean releaseLock(TransactionImpl tx, Identity oid, Object obj); 86 87 88 92 public abstract boolean checkRead(TransactionImpl tx, Object obj); 93 94 98 public abstract boolean checkRead(TransactionImpl tx, Identity oid, Object obj); 99 100 101 105 public abstract boolean checkWrite(TransactionImpl tx, Object obj); 106 107 111 public abstract boolean checkWrite(TransactionImpl tx, Identity oid, Object obj); 112 } 113 | Popular Tags |