org.apache.ojb.odmg.locking
Class LockStrategyFactory

java.lang.Object
  extended byorg.apache.ojb.odmg.locking.LockStrategyFactory

public class LockStrategyFactory
extends java.lang.Object

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

Version:
$Id: LockStrategyFactory.java,v 1.10 2003/12/13 14:34:23 thma Exp $
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 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14