Top Description Fields Constructors Methods
org.apache.derby.impl.store.access

public Class RllRAMAccessManager

extends RAMAccessManager
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.Property, org.apache.derby.iapi.services.property.PropertyUtil, org.apache.derby.iapi.store.access.TransactionController

Implements the row level locking accessmanager.

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.apache.derby.impl.store.access.RAMAccessManager:
conglom_maprecord_level_policysystem_default_locking_policytable_level_policy

Constructor Summary

AccessConstructor and Description
public
RllRAMAccessManager()

Constructors for This class:

Method Summary

Modifier and TypeMethod and Description
protected void
protected int

Returns:

TransactionController.MODE_TABLE if only table locking allowed, else returns TransactionController.MODE_RECORD.
getSystemLockLevel
()

Implements abstract org.apache.derby.impl.store.access.RAMAccessManager.getSystemLockLevel.

Return the locking level of the system.

Inherited from org.apache.derby.impl.store.access.RAMAccessManager:
applybackupbackupAndEnableLogArchiveModebootcheckpointconglomCacheAddEntryconglomCacheFindconglomCacheInvalidateconglomCacheRemoveEntrycreateFinishedcreateReadMeFilesdisableLogArchiveModefailoverfindMethodFactoryByFormatfindMethodFactoryByImplfreezegetAndNameTransactiongetCurrentTransactionContextgetDefaultLockingPolicygetFactoryFromConglomIdgetLockFactorygetNextConglomIdgetRawStoregetTransactiongetTransactionalPropertiesgetTransactionInfogetXAResourceManagerinitisReadOnlymapnewCacheableregisterAccessMethodstartReplicationMasterstartXATransactionstopstopReplicationMasterunfreezevalidatewaitForPostCommitToFinishWork

Field Detail

system_lock_levelback to summary
private int system_lock_level

Constructor Detail

RllRAMAccessManagerback to summary
public RllRAMAccessManager()

Constructors for This class:

Method Detail

bootLookupSystemLockLevelback to summary
protected void bootLookupSystemLockLevel(TransactionController tc) throws StandardException

Implements abstract org.apache.derby.impl.store.access.RAMAccessManager.bootLookupSystemLockLevel.

Query property system to get the System lock level.

This routine will be called during boot after access has booted far enough, to allow access to the property conglomerate. This routine will call the property system and set the value to be returned by getSystemLockLevel().

Exceptions
StandardException:
Standard exception policy.
getSystemLockLevelback to summary
protected int getSystemLockLevel()

Implements abstract org.apache.derby.impl.store.access.RAMAccessManager.getSystemLockLevel.

Return the locking level of the system.

This routine controls the lowest level of locking enabled for all locks for all tables accessed through this accessmanager. The concrete implementation may set this value always to table level locking for a client configuration, or it may set it to row level locking for a server configuration.

If TransactionController.MODE_RECORD is returned table may either be locked at table or row locking depending on the type of access expected (ie. level 3 will require table locking for heap scans.)

Returns:int

TransactionController.MODE_TABLE if only table locking allowed, else returns TransactionController.MODE_RECORD.