org.apache.ojb.broker.core
Class PersistenceBrokerFactorySyncImpl.TxRegistry

java.lang.Object
  extended byorg.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl.TxRegistry
Enclosing class:
PersistenceBrokerFactorySyncImpl

class PersistenceBrokerFactorySyncImpl.TxRegistry
extends java.lang.Object

Maps all TransactionBox instances based on Transaction object identity. TODO: Not sure if we should held TransactionBox instances per thread or per transaction object identity. As far as I know it is possible in JTA that thread A starts a tx and thread B commits the tx, thus I start with tx identity as key in registry


Field Summary
(package private)  java.util.Map txBoxMap
           
 
Constructor Summary
PersistenceBrokerFactorySyncImpl.TxRegistry()
           
 
Method Summary
(package private)  void register(javax.transaction.Transaction tx, javax.transaction.Synchronization syncObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txBoxMap

java.util.Map txBoxMap
Constructor Detail

PersistenceBrokerFactorySyncImpl.TxRegistry

public PersistenceBrokerFactorySyncImpl.TxRegistry()
Method Detail

register

void register(javax.transaction.Transaction tx,
              javax.transaction.Synchronization syncObject)
        throws javax.transaction.RollbackException,
               javax.transaction.SystemException
Throws:
javax.transaction.RollbackException
javax.transaction.SystemException


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