1 24 package org.objectweb.jalisto.se.api.internal.multi; 25 26 import org.objectweb.jalisto.se.impl.LogicalOid; 27 import org.objectweb.jalisto.se.api.internal.DataWrapper; 28 29 import java.util.Collection ; 30 31 public interface LockManager { 32 void setLockTable(org.objectweb.jalisto.se.api.internal.multi.LockTable lockTable); 33 34 DataWrapper getLockedValue(LogicalOid floid, Object sessionId); 35 36 void setLockedValue(LogicalOid floid, Object sessionId, DataWrapper value, short update); 37 38 short getUpdate(LogicalOid floid, Object sessionId); 39 40 void setSession(SessionMulti session); 41 42 void begin(); 43 44 void checkLocksForSession(Collection floids, Object sessionId); 45 46 void commit(); 47 48 boolean containsDeletedValue(LogicalOid floid, Object sessionId); 49 50 boolean containsLockedValue(LogicalOid floid, Object sessionId); 51 52 void finishCreateObject(LogicalOid floid, DataWrapper objectToCreate); 53 54 void finishDeleteObjectByOid(LogicalOid floid); 55 56 void finishMakeNewFileOid(LogicalOid floid); 57 58 void finishReadObjectByOid(LogicalOid floid, DataWrapper objectToRead, short update); 59 60 void finishUpdateObjectByOid(LogicalOid floid, DataWrapper objectToUpdate, short update); 61 62 void prepareCreateObject(LogicalOid floid, DataWrapper objectToCreate); 63 64 void prepareDeleteObjectByOid(LogicalOid floid, short update); 65 66 void prepareReadObjectByOid(LogicalOid floid); 67 68 void rollback(); 69 } 70 | Popular Tags |