org.apache.ojb.broker.locking
Class LockIsolation

java.lang.Object
  extended by org.apache.ojb.broker.locking.LockIsolation
Direct Known Subclasses:
LockIsolationManager.ReadCommittedIsolation, LockIsolationManager.ReadUncommittedIsolation, LockIsolationManager.RepeatableReadIsolation, LockIsolationManager.SerializableIsolation

abstract class LockIsolation
extends Object

This interface defines method that a Locking Strategy must implement according to the isolation level it represents.


Constructor Summary
LockIsolation()
           
 
Method Summary
(package private) abstract  boolean allowMultipleRead()
          Decide if this lock strategy allows multiple read locks.
(package private) abstract  boolean allowReadWhenWrite()
          Decide if this lock strategy allows one or more read locks when a write lock already exists.
(package private) abstract  boolean allowWriteWhenRead()
          Decide if this lock strategy allows a write lock when one or more read locks already exists.
(package private) abstract  int getIsolationLevel()
          Returns the isolation level identity.
(package private) abstract  String getIsolationLevelAsString()
          Returns the isolation level identity as string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockIsolation

LockIsolation()
Method Detail

getIsolationLevel

abstract int getIsolationLevel()
Returns the isolation level identity.

Returns:
The isolation level number.

getIsolationLevelAsString

abstract String getIsolationLevelAsString()
Returns the isolation level identity as string.

Returns:
The isolation level as string.

allowMultipleRead

abstract boolean allowMultipleRead()
Decide if this lock strategy allows multiple read locks.

Returns:
True if multiple read locks allowed, else False.

allowWriteWhenRead

abstract boolean allowWriteWhenRead()
Decide if this lock strategy allows a write lock when one or more read locks already exists.

Returns:
True if write lock allowed when read lock exist, else False.

allowReadWhenWrite

abstract boolean allowReadWhenWrite()
Decide if this lock strategy allows one or more read locks when a write lock already exists.

Returns:
True if read locks allowed when write lock exist, else False.


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.