1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.iapi.services.io.FormatableBitSet; 25 import org.apache.derby.iapi.services.io.DynamicByteArrayOutputStream; 26 27 import org.apache.derby.iapi.error.StandardException; 28 29 import org.apache.derby.iapi.store.access.conglomerate.LogicalUndo; 30 31 import org.apache.derby.iapi.store.raw.RecordHandle; 32 import org.apache.derby.iapi.store.raw.xact.RawTransaction; 33 34 import org.apache.derby.iapi.types.DataValueDescriptor; 35 36 37 public interface PageActions 38 { 39 40 58 public void actionDelete( 59 RawTransaction t, 60 BasePage page, 61 int slot, 62 int recordId, 63 boolean delete, 64 LogicalUndo undo) 65 throws StandardException; 66 67 68 91 public int actionUpdate( 92 RawTransaction t, 93 BasePage page, 94 int slot, 95 int recordId, 96 Object [] row, 97 FormatableBitSet validColumns, 98 int realStartColumn, 99 DynamicByteArrayOutputStream logBuffer, 100 int realSpaceOnPage, 101 RecordHandle headRowHandle) 102 throws StandardException; 103 104 121 public void actionPurge( 122 RawTransaction t, 123 BasePage page, 124 int slot, 125 int num_rows, 126 int[] recordIds, 127 boolean logData) 128 throws StandardException; 129 130 151 public void actionUpdateField( 152 RawTransaction t, 153 BasePage page, 154 int slot, 155 int recordId, 156 int fieldId, 157 Object newValue, 158 LogicalUndo undo) 159 throws StandardException; 160 161 181 public int actionInsert( 182 RawTransaction t, 183 BasePage page, 184 int slot, 185 int recordId, 186 Object [] row, 187 FormatableBitSet validColumns, 188 LogicalUndo undo, 189 byte insertFlag, 190 int startColumn, 191 boolean isLongColumn, 192 int realStartColumn, 193 DynamicByteArrayOutputStream logBuffer, 194 int realSpaceOnPage, 195 int overflowThreshold) 196 throws StandardException; 197 198 214 public void actionCopyRows( 215 RawTransaction t, 216 BasePage destPage, 217 BasePage srcPage, 218 int destSlot, 219 int numRows, 220 int srcSlot, 221 int[] recordIds) 222 throws StandardException; 223 224 238 public void actionInvalidatePage( 239 RawTransaction t, 240 BasePage page) 241 throws StandardException; 242 243 259 public void actionInitPage( 260 RawTransaction t, 261 BasePage page, 262 int initFlag, 263 int pageFormatId, 264 long pageOffset) 265 throws StandardException; 266 267 281 public void actionShrinkReservedSpace( 282 RawTransaction t, 283 BasePage page, 284 int slot, 285 int recordId, 286 int newValue, 287 int oldValue) 288 throws StandardException; 289 } 290 | Popular Tags |