1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.impl.store.raw.data.BasePage; 25 26 import org.apache.derby.iapi.store.raw.Compensation; 27 28 import org.apache.derby.iapi.store.raw.log.LogInstant; 29 30 import org.apache.derby.iapi.store.raw.Transaction; 31 import org.apache.derby.iapi.store.raw.Undoable; 32 33 import org.apache.derby.iapi.error.StandardException; 34 35 import java.io.InputStream ; 36 import java.io.ObjectInput ; 37 import java.io.IOException ; 38 import org.apache.derby.iapi.services.io.LimitObjectInput; 39 40 58 59 public abstract class PhysicalPageOperation extends PageBasicOperation implements Undoable 60 { 61 protected PhysicalPageOperation(BasePage page) 62 { 63 super(page); 64 } 65 66 69 70 public PhysicalPageOperation() { super(); } 72 73 75 78 79 106 public Compensation generateUndo(Transaction xact, LimitObjectInput in) 107 throws StandardException 108 { 109 BasePage undoPage = findpage(xact); 113 114 undoPage.preDirty(); 119 120 return new PhysicalUndoOperation(undoPage, this); 121 } 122 123 124 143 abstract public void undoMe(Transaction xact, BasePage undoPage, 144 LogInstant CLRinstant, LimitObjectInput in) 145 throws StandardException, IOException ; 146 147 148 } 149 150 | Popular Tags |