1 package org.odmg; 2 3 4 5 60 61 62 63 public interface Transaction 64 65 { 66 67 74 75 public void join(); 76 77 78 79 86 87 public void leave(); 88 89 90 91 110 111 public void begin(); 112 113 114 115 128 129 public boolean isOpen(); 130 131 132 133 164 165 public void commit(); 166 167 168 169 180 181 public void abort(); 182 183 184 185 198 199 public void checkpoint(); 200 201 202 203 208 209 public static final int READ = 1; 210 211 212 213 218 219 public static final int UPGRADE = 2; 220 221 222 223 228 229 public static final int WRITE = 4; 230 231 232 233 250 251 public void lock(Object obj, int lockMode) 252 253 throws LockNotGrantedException; 254 255 256 257 274 275 public boolean tryLock(Object obj, int lockMode); 276 277 278 279 } 280 281 | Popular Tags |