1 21 22 package org.apache.derby.iapi.store.access; 23 24 import org.apache.derby.iapi.store.access.RowUtil; 25 26 import org.apache.derby.iapi.services.io.Storable; 27 28 import org.apache.derby.iapi.types.DataValueDescriptor; 29 30 import org.apache.derby.iapi.types.RowLocation; 31 32 import org.apache.derby.iapi.error.StandardException; 33 import org.apache.derby.iapi.services.io.FormatableBitSet; 34 35 import java.util.Properties ; 36 37 38 82 83 public interface ConglomerateController extends ConglomPropertyQueryable 84 { 85 public static final int ROWISDUPLICATE = 1; 86 87 103 public void close() 104 throws StandardException; 105 106 135 boolean closeForEndTransaction(boolean closeHeldScan) 136 throws StandardException; 137 138 149 void checkConsistency() 150 throws StandardException; 151 152 158 boolean delete(RowLocation loc) 159 throws StandardException; 160 161 183 boolean fetch( 184 RowLocation loc, 185 DataValueDescriptor[] destRow, 186 FormatableBitSet validColumns) 187 throws StandardException; 188 189 216 boolean fetch( 217 RowLocation loc, 218 DataValueDescriptor[] destRow, 219 FormatableBitSet validColumns, 220 boolean waitForLock) 221 throws StandardException; 222 223 257 265 266 282 int insert(DataValueDescriptor[] row) 283 throws StandardException; 284 285 304 void insertAndFetchLocation( 305 DataValueDescriptor[] row, 306 RowLocation destRowLocation) 307 throws StandardException; 308 309 312 boolean isKeyed(); 313 314 315 public static final int LOCK_READ = (0x00000000); 316 public static final int LOCK_UPD = (0x00000001); 317 public static final int LOCK_INS = (0x00000002); 318 public static final int LOCK_INS_PREVKEY = (0x00000004); 319 public static final int LOCK_UPDATE_LOCKS = (0x00000008); 320 321 352 boolean lockRow( 353 RowLocation loc, 354 int lock_oper, 355 boolean wait, 356 int lock_duration) 357 throws StandardException; 358 359 392 boolean lockRow( 393 long page_num, 394 int record_id, 395 int lock_oper, 396 boolean wait, 397 int lock_duration) 398 throws StandardException; 399 400 417 public void unlockRowAfterRead( 418 RowLocation loc, 419 boolean forUpdate, 420 boolean row_qualified) 421 throws StandardException; 422 423 428 RowLocation newRowLocationTemplate() 429 throws StandardException; 430 431 438 boolean replace( 439 RowLocation loc, 440 DataValueDescriptor[] row, 441 FormatableBitSet validColumns) 442 throws StandardException; 443 444 447 SpaceInfo getSpaceInfo() 448 throws StandardException; 449 450 459 void debugConglomerate() 460 throws StandardException; 461 } 462 | Popular Tags |