1 21 22 package org.apache.derby.impl.store.access.btree.index; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.store.access.ConglomerateController; 29 import org.apache.derby.iapi.types.RowLocation; 30 import org.apache.derby.iapi.store.access.TransactionController; 31 32 import org.apache.derby.iapi.store.raw.FetchDescriptor; 33 import org.apache.derby.iapi.store.raw.LockingPolicy; 34 import org.apache.derby.iapi.store.raw.Page; 35 import org.apache.derby.iapi.store.raw.RecordHandle; 36 import org.apache.derby.iapi.store.raw.Transaction; 37 38 import org.apache.derby.iapi.types.DataValueDescriptor; 39 40 import org.apache.derby.impl.store.access.btree.BTree; 41 import org.apache.derby.impl.store.access.btree.BTreeLockingPolicy; 42 import org.apache.derby.impl.store.access.btree.ControlRow; 43 import org.apache.derby.impl.store.access.btree.LeafControlRow; 44 import org.apache.derby.impl.store.access.btree.OpenBTree; 45 import org.apache.derby.impl.store.access.btree.BTreeRowPosition; 46 import org.apache.derby.impl.store.access.btree.WaitError; 47 48 49 63 64 public class B2INoLocking implements BTreeLockingPolicy 65 { 66 67 71 public B2INoLocking( 72 Transaction rawtran, 73 int lock_level, 74 LockingPolicy locking_policy, 75 ConglomerateController base_cc, 76 OpenBTree open_btree) 77 { 78 } 79 80 protected B2INoLocking() 81 { 82 } 83 84 88 89 90 99 100 101 108 public boolean lockScan( 109 LeafControlRow current_leaf, 110 ControlRow aux_control_row, 111 boolean forUpdate, 112 int lock_operation) 113 throws StandardException 114 { 115 return(true); 116 } 117 118 131 public boolean lockScanForReclaimSpace( 132 LeafControlRow current_leaf) 133 throws StandardException 134 { 135 return(false); 137 } 138 139 153 public boolean lockScanCommittedDeletedRow( 154 OpenBTree open_btree, 155 LeafControlRow leaf, 156 DataValueDescriptor[] template, 157 FetchDescriptor lock_fetch_desc, 158 int slot_no) 159 throws StandardException 160 { 161 return(true); 162 } 163 164 187 public boolean lockScanRow( 188 OpenBTree open_btree, 189 BTree btree, 190 BTreeRowPosition pos, 191 boolean request_scan_lock, 192 FetchDescriptor lock_fetch_desc, 193 DataValueDescriptor[] lock_template, 194 RowLocation lock_row_loc, 195 boolean previous_key_lock, 196 boolean forUpdate, 197 int lock_operation) 198 throws StandardException 199 { 200 return(true); 201 } 202 203 210 public void unlockScanRecordAfterRead( 211 BTreeRowPosition pos, 212 boolean forUpdate) 213 throws StandardException 214 { 215 return; 216 } 217 218 219 225 public void unlockScan( 226 long page_number) 227 { 228 } 229 230 237 238 245 public boolean lockNonScanPreviousRow( 246 BTree btree, 247 LeafControlRow current_leaf, 248 int current_slot, 249 FetchDescriptor lock_fetch_desc, 250 DataValueDescriptor[] lock_template, 251 RowLocation lock_row_loc, 252 OpenBTree open_btree, 253 int lock_operation, 254 int lock_duration) 255 throws StandardException 256 { 257 return(true); 258 } 259 260 261 268 public boolean lockNonScanRow( 269 BTree btree, 270 LeafControlRow current_leaf, 271 LeafControlRow aux_leaf, 272 DataValueDescriptor[] current_row, 273 int lock_operation) 274 throws StandardException 275 { 276 return(true); 277 } 278 279 public boolean lockNonScanRowOnPage( 280 BTree btree, 281 LeafControlRow current_leaf, 282 int current_slot, 283 FetchDescriptor lock_fetch_desc, 284 DataValueDescriptor[] lock_template, 285 RowLocation lock_row_loc, 286 int lock_operation) 287 throws StandardException 288 { 289 return(true); 290 } 291 } 292 | Popular Tags |