org.apache.ojb.otm.transaction
Class LocalTransactionFactory.LocalConnection

java.lang.Object
  extended by org.apache.ojb.otm.core.BaseConnection
      extended by org.apache.ojb.otm.transaction.LocalTransactionFactory.LocalConnection
All Implemented Interfaces:
OTMConnection
Enclosing class:
LocalTransactionFactory

private static class LocalTransactionFactory.LocalConnection
extends BaseConnection

Represents a local connection. This is a private static inner class to restrict visibility to others.

Author:
Raghu Rajah

Constructor Summary
LocalTransactionFactory.LocalConnection(PBKey pbKey)
           
 
Method Summary
 void transactionBegin()
          Notification issued by the driving transaction to begin this transaction
 void transactionCommit()
          Notification issued by the driving transaction to commit resources held by this connection.
 void transactionPrepare()
          Prepare for a commit.
 void transactionRollback()
          Notification issued by the driving transaction to rollback resources held by this connection.
 
Methods inherited from class org.apache.ojb.otm.core.BaseConnection
close, deletePersistent, getCollectionByQuery, getCollectionByQuery, getCount, getDescriptorFor, getEditingContext, getIdentity, getIteratorByOQLQuery, getIteratorByOQLQuery, getIteratorByQuery, getIteratorByQuery, getKernelBroker, getObjectByIdentity, getObjectByIdentity, getTransaction, invalidate, invalidateAll, isClosed, lockForWrite, makePersistent, newOQLQuery, newOQLQuery, refresh, serviceObjectCache, setTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalTransactionFactory.LocalConnection

public LocalTransactionFactory.LocalConnection(PBKey pbKey)
Method Detail

transactionBegin

public void transactionBegin()
                      throws TransactionException
Description copied from class: BaseConnection
Notification issued by the driving transaction to begin this transaction

Specified by:
transactionBegin in class BaseConnection
Throws:
TransactionException
See Also:
BaseConnection.transactionBegin()

transactionPrepare

public void transactionPrepare()
                        throws TransactionException
Description copied from class: BaseConnection
Prepare for a commit. As part of a two phase commit protocol of the transaction.

Specified by:
transactionPrepare in class BaseConnection
Throws:
TransactionException
See Also:
BaseConnection.transactionPrepare()

transactionCommit

public void transactionCommit()
                       throws TransactionException
Description copied from class: BaseConnection
Notification issued by the driving transaction to commit resources held by this connection.

Specified by:
transactionCommit in class BaseConnection
Throws:
TransactionException
See Also:
BaseConnection.transactionCommit()

transactionRollback

public void transactionRollback()
                         throws TransactionException
Description copied from class: BaseConnection
Notification issued by the driving transaction to rollback resources held by this connection.

Specified by:
transactionRollback in class BaseConnection
Throws:
TransactionException
See Also:
BaseConnection.transactionRollback()


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