org.apache.ojb.odmg.locking |
|
Java Source File Name | Type | Comment |
AbstractLockStrategy.java | Class | The base class of all LockingStrategies. |
InMemoryLockMapImpl.java | Class | We use a HashMap and synchronize blocks of access for a get "check" then put
operation. |
LockEntry.java | Class | a persistent entry for locks. |
LockManager.java | Interface | This interface declares the functionality of the OJB internal Locking mechanism.
A default implementaion LockManagerDefaultImpl is provided. |
LockManagerDefaultImpl.java | Class | The OJB default implementation of a Locking mechanism.
This Implementation supports 4 transaction isolation levels
as specified in the interface
org.apache.ojb.broker.locking.IsolationLevels :
public final int IL_READ_UNCOMMITTED = 0;
public final int IL_READ_COMMITTED = 1;
public final int IL_REPEATABLE_READ = 2;
public final int IL_SERIALIZABLE = 3;
Isolationlevels can be adjusted per class.
The proper lockhandling is done in the respective LockStrategy implementation.
This default implementation provides persistent Locks that are stored in
a special database table.
To keep the locks in the database and not in memory allows to use
them accross multiple distributed ODMG clients.
Of course this solution causes a lot of database reads and writes even if
no real application data is written to the database. |
LockManagerFactory.java | Class | This factory class creates LockManager instances according
to the setting in the OJB properties file. |
LockManagerOdmgImpl.java | Class | The odmg lock manager implementation of the
LockManager interface. |
LockMap.java | Interface | |
LockMapFactory.java | Class | |
LockStrategy.java | Interface | this interface defines method that a Locking Strategy must implement
according to the transaction isolation level it represents. |
LockStrategyFactory.java | Class | Factory class used to obtain the proper LockingStrategy for an Object. |
ObjectLocks.java | Class | |
ReadCommittedStrategy.java | Class | The implementation of the Commited Reads Locking stra
ReadCommitted - Reads and Writes require locks. |
ReadUncommittedStrategy.java | Class | The implementation of the Uncommited Reads Locking strategy.
This strategy is the loosest of them all. |
RemoteLockMapImpl.java | Class | Servlet based lock mechanism for usage in distributed environment. |
RepeatableReadStrategy.java | Class | The implementation of the Repeatable Reads Locking strategy. |
SerializableStrategy.java | Class | The implementation of the Serializable Locking strategy. |