org.apache.ojb.otm
Class OTMKit

java.lang.Object
  extended byorg.apache.ojb.otm.OTMKit
All Implemented Interfaces:
Kit
Direct Known Subclasses:
SimpleKit

public abstract class OTMKit
extends java.lang.Object
implements Kit

OTMKit implementations provide the initial point of entry into the OTM layer.

Author:
Raghu Rajah

Constructor Summary
OTMKit()
           
 
Method Summary
 OTMConnection acquireConnection(PBKey pbKey)
          Obtain an OTMConnection for the given persistence broker key
abstract  ObjectCopyStrategy getCopyStrategy(Identity oid)
           
abstract  LockMap getLockMap()
           
abstract  LockWaitStrategy getLockWaitStrategy()
           
abstract  Swizzling getSwizzlingStrategy()
           
 Transaction getTransaction(OTMConnection conn)
          Obtain the transaction which conn is currently bound to.
protected abstract  TransactionFactory getTransactionFactory()
           
abstract  boolean isEagerInsert(java.lang.Object obj)
          Should OTM perform INSERTs for the given object eagerly or during commit?
abstract  boolean isImplicitLockingUsed()
          Should OTM implicitely read lock all objects that are reachable from the explicitely locked object? The updates to the read locked objects are automatically stored to the database at the end of transaction.
abstract  boolean isInsertVerified()
          Should OTM verify each inserted object for presence in the database?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OTMKit

public OTMKit()
Method Detail

acquireConnection

public OTMConnection acquireConnection(PBKey pbKey)
Obtain an OTMConnection for the given persistence broker key

Specified by:
acquireConnection in interface Kit

getTransaction

public Transaction getTransaction(OTMConnection conn)
Obtain the transaction which conn is currently bound to.

Specified by:
getTransaction in interface Kit

getTransactionFactory

protected abstract TransactionFactory getTransactionFactory()

getSwizzlingStrategy

public abstract Swizzling getSwizzlingStrategy()
Specified by:
getSwizzlingStrategy in interface Kit

getLockWaitStrategy

public abstract LockWaitStrategy getLockWaitStrategy()
Specified by:
getLockWaitStrategy in interface Kit

getLockMap

public abstract LockMap getLockMap()
Specified by:
getLockMap in interface Kit

getCopyStrategy

public abstract ObjectCopyStrategy getCopyStrategy(Identity oid)
Specified by:
getCopyStrategy in interface Kit

isImplicitLockingUsed

public abstract boolean isImplicitLockingUsed()
Should OTM implicitely read lock all objects that are reachable from the explicitely locked object? The updates to the read locked objects are automatically stored to the database at the end of transaction.

Specified by:
isImplicitLockingUsed in interface Kit

isInsertVerified

public abstract boolean isInsertVerified()
Should OTM verify each inserted object for presence in the database?


isEagerInsert

public abstract boolean isEagerInsert(java.lang.Object obj)
Should OTM perform INSERTs for the given object eagerly or during commit?



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