1 21 22 package org.apache.derby.iapi.store.raw.log; 23 24 import org.apache.derby.iapi.store.raw.RawStoreFactory; 25 import org.apache.derby.iapi.store.raw.Loggable; 26 import org.apache.derby.iapi.store.raw.Compensation; 27 28 import org.apache.derby.iapi.store.raw.xact.RawTransaction; 29 import org.apache.derby.iapi.store.raw.xact.TransactionFactory; 30 import org.apache.derby.iapi.store.raw.xact.TransactionId; 31 32 import org.apache.derby.iapi.store.raw.data.DataFactory; 33 34 import org.apache.derby.iapi.error.StandardException; 35 36 import org.apache.derby.iapi.services.io.LimitObjectInput; 37 38 public interface Logger { 39 40 59 public LogInstant logAndDo(RawTransaction xact, Loggable operation) 60 throws StandardException; 61 62 84 public LogInstant logAndUndo(RawTransaction xact, 85 Compensation operation, LogInstant undoInstant, 86 LimitObjectInput in) 87 throws StandardException; 88 89 96 public void flush(LogInstant where) throws StandardException; 97 98 99 104 public void flushAll() throws StandardException; 105 106 128 public void reprepare( 129 RawTransaction t, 130 TransactionId undoId, 131 LogInstant undoStopAt, 132 LogInstant undoStartAt) 133 throws StandardException; 134 135 150 public void undo(RawTransaction t, 151 TransactionId undoId, 152 LogInstant undoStopAt, 153 LogInstant undoStartAt) throws StandardException; 154 } 155 | Popular Tags |