1 21 22 package org.apache.derby.iapi.store.raw.xact; 23 24 import org.apache.derby.iapi.services.context.ContextManager; 25 import org.apache.derby.iapi.services.daemon.Serviceable; 26 import org.apache.derby.iapi.services.io.Formatable; 27 import org.apache.derby.iapi.services.locks.LockFactory; 28 29 import org.apache.derby.iapi.store.access.TransactionInfo; 30 31 import org.apache.derby.iapi.store.raw.RawStoreFactory; 32 import org.apache.derby.iapi.store.raw.Transaction; 33 import org.apache.derby.iapi.store.raw.Corruptable; 34 35 import org.apache.derby.iapi.store.raw.log.LogInstant; 36 37 import org.apache.derby.iapi.error.StandardException; 38 39 52 53 public interface TransactionFactory extends Corruptable { 54 55 public static String MODULE = 56 "org.apache.derby.iapi.store.raw.xact.TransactionFactory"; 57 58 61 public LockFactory getLockFactory(); 62 63 69 public Object getXAResourceManager() 70 throws StandardException; 71 72 86 public RawTransaction startTransaction( 87 RawStoreFactory rsf, 88 ContextManager contextMgr, 89 String transName) 90 throws StandardException; 91 92 107 public RawTransaction startNestedReadOnlyUserTransaction( 108 RawStoreFactory rsf, 109 Object compatibilitySpace, 110 ContextManager contextMgr, 111 String transName) 112 throws StandardException; 113 114 128 public RawTransaction startNestedUpdateUserTransaction( 129 RawStoreFactory rsf, 130 ContextManager contextMgr, 131 String transName) 132 throws StandardException; 133 134 135 152 public RawTransaction startGlobalTransaction( 153 RawStoreFactory rsf, 154 ContextManager contextMgr, 155 int format_id, 156 byte[] global_id, 157 byte[] branch_id) 158 throws StandardException; 159 160 171 public RawTransaction findUserTransaction( 172 RawStoreFactory rsf, 173 ContextManager contextMgr, 174 String transName) throws StandardException; 175 176 185 public RawTransaction startNestedTopTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException; 186 187 188 197 public RawTransaction startInternalTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException; 198 199 200 205 public boolean findTransaction(TransactionId id, RawTransaction tran); 206 207 208 212 public void resetTranId() throws StandardException; 213 214 219 public LogInstant firstUpdateInstant(); 220 221 232 public void handlePreparedXacts( 233 RawStoreFactory rsf) 234 throws StandardException; 235 236 237 244 public void rollbackAllTransactions(RawTransaction recoveryTransaction, 245 RawStoreFactory rsf) 246 throws StandardException ; 247 248 249 259 public boolean submitPostCommitWork(Serviceable work); 260 261 264 public void setRawStoreFactory(RawStoreFactory rsf) throws StandardException; 265 266 270 public boolean noActiveUpdateTransaction(); 271 272 273 281 public boolean hasPreparedXact(); 282 283 288 public void createFinished() throws StandardException; 289 290 294 public Formatable getTransactionTable(); 295 296 302 public void useTransactionTable(Formatable transactionTable) 303 throws StandardException; 304 305 308 public TransactionInfo[] getTransactionInfo(); 309 310 311 322 public boolean blockBackupBlockingOperations(boolean wait) 323 throws StandardException ; 324 325 328 public void unblockBackupBlockingOperations(); 329 330 331 332 333 } 334 | Popular Tags |