1 21 22 package org.apache.derby.impl.store.access; 23 24 import org.apache.derby.iapi.services.monitor.Monitor; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.store.access.AccessFactoryGlobals; 29 import org.apache.derby.iapi.store.access.TransactionController; 30 31 import org.apache.derby.iapi.store.raw.LockingPolicy; 32 33 import org.apache.derby.iapi.services.property.PropertyUtil; 34 35 import java.util.Properties ; 36 37 import org.apache.derby.iapi.reference.Property; 38 39 44 45 public class RllRAMAccessManager extends RAMAccessManager 46 { 47 private int system_lock_level = TransactionController.MODE_RECORD; 48 49 53 public RllRAMAccessManager() 54 { 55 super(); 56 } 57 58 62 63 68 69 85 protected int getSystemLockLevel() 86 { 87 return(system_lock_level); 88 } 89 90 101 protected void bootLookupSystemLockLevel( 102 TransactionController tc) 103 throws StandardException 104 { 105 108 109 if (isReadOnly() || !PropertyUtil.getServiceBoolean(tc, Property.ROW_LOCKING, true)) 110 { 111 system_lock_level = TransactionController.MODE_TABLE; 112 } 113 } 114 } 115 | Popular Tags |