Class RllRAMAccessManager
- java.lang.Object
-
- org.apache.derby.impl.store.access.RAMAccessManager
-
- org.apache.derby.impl.store.access.RllRAMAccessManager
-
- All Implemented Interfaces:
CacheableFactory
,ModuleControl
,PropertySetCallback
,AccessFactory
public class RllRAMAccessManager extends RAMAccessManager
Implements the row level locking accessmanager.
-
-
Field Summary
Fields Modifier and Type Field Description private int
system_lock_level
-
Fields inherited from class org.apache.derby.impl.store.access.RAMAccessManager
conglom_map, record_level_policy, system_default_locking_policy, table_level_policy
-
Fields inherited from interface org.apache.derby.iapi.store.access.AccessFactory
MODULE
-
-
Constructor Summary
Constructors Constructor Description RllRAMAccessManager()
Constructors for This class:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bootLookupSystemLockLevel(TransactionController tc)
Query property system to get the System lock level.protected int
getSystemLockLevel()
Return the locking level of the system.-
Methods inherited from class org.apache.derby.impl.store.access.RAMAccessManager
apply, backup, backupAndEnableLogArchiveMode, boot, checkpoint, conglomCacheAddEntry, conglomCacheFind, conglomCacheInvalidate, conglomCacheRemoveEntry, createFinished, createReadMeFiles, disableLogArchiveMode, failover, findMethodFactoryByFormat, findMethodFactoryByImpl, freeze, getAndNameTransaction, getCurrentTransactionContext, getDefaultLockingPolicy, getFactoryFromConglomId, getLockFactory, getNextConglomId, getRawStore, getTransaction, getTransactionalProperties, getTransactionInfo, getXAResourceManager, init, isReadOnly, map, newCacheable, registerAccessMethod, startReplicationMaster, startXATransaction, stop, stopReplicationMaster, unfreeze, validate, waitForPostCommitToFinishWork
-
-
-
-
Method Detail
-
getSystemLockLevel
protected int 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.)
- Specified by:
getSystemLockLevel
in classRAMAccessManager
- Returns:
- TransactionController.MODE_TABLE if only table locking allowed, else returns TransactionController.MODE_RECORD.
-
bootLookupSystemLockLevel
protected void bootLookupSystemLockLevel(TransactionController tc) throws StandardException
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().
- Specified by:
bootLookupSystemLockLevel
in classRAMAccessManager
- Throws:
StandardException
- Standard exception policy.
-
-