ojb.odmg.locking
Class LockStrategyFactory

java.lang.Object
  |
  +--ojb.odmg.locking.LockStrategyFactory

public class LockStrategyFactory
extends java.lang.Object

Factory class used to obtain the proper LockingStrategy for an Object.

Author:
Thomas Mahler & David Dixon-Peugh

Method Summary
static int getIsolationLevel(java.lang.Object obj)
          determines the isolationlevel of class c by evaluating the ClassDescriptor of obj.getClass().
static LockStrategy getStrategyFor(java.lang.Object obj)
          obtains a LockStrategy for Object obj.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStrategyFor

public static LockStrategy getStrategyFor(java.lang.Object obj)
obtains a LockStrategy for Object obj. The Strategy to be used is selected by evaluating the ClassDescriptor of obj.getClass().

Returns:
LockStrategy

getIsolationLevel

public static int getIsolationLevel(java.lang.Object obj)
determines the isolationlevel of class c by evaluating the ClassDescriptor of obj.getClass().

Returns:
int the isolationlevel


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04