Skip navigation links

Oracle TopLink Java API Reference
10g Release 3 (10.1.3.1)

B28219-01


oracle.toplink.transaction
Class OTSTransactionController

java.lang.Object
  extended byoracle.toplink.transaction.AbstractTransactionController
      extended byoracle.toplink.transaction.OTSTransactionController

All Implemented Interfaces:
ExternalTransactionController
Direct Known Subclasses:
WebSphereTransactionController_4_0

public abstract class OTSTransactionController
extends AbstractTransactionController

Purpose: TransactionController implementation for Java Transaction Service (JTS) which is the Java binding of the CORBAservices Common Object Services (Cos) Transaction Service (OTS) 1.x

Description: Implements the required behaviour for directly controlling OTS 1.x transactions without going through JTA. Any Java binding may be used, but specific implementations will need to extend this class for defining where the Current object can be obtained. The Current object is not cached, but obtained on each call. If a transaction system allows using the same Current object for all operations and from different threads then it may be cached by subclass instances.

If a different listener needs to be used for synchronization, the SynchronizationListenerFactory should be set on the controller instance. The listener subclass should implement the factory interface, so that setting the factory is simply a matter of assigning an instance of the listener. e.g. controller.setSynchronizationListenerFactory( new DifferentServerSynchronizationListener()); The default listener factory creates instances of OTSSynchronizationListener.

See Also:
OTSSynchronizationListener, AbstractTransactionController

Field Summary
static boolean DEFAULT_REPORT_HEURISTICS
           
 boolean reportHeuristicsOnCommit
           

 

Constructor Summary
OTSTransactionController()
          PUBLIC: Return a new controller for use with an OTS 1.x compliant transaction system.

 

Method Summary
 boolean getReportHeuristicsOnCommit()
          PUBLIC: Return the value of the ReportHeuristics setting that will be passed in when TopLink commits transactions.
 void setReportHeuristicsOnCommit(boolean bool)
          PUBLIC: Set the value of the ReportHeuristics setting that will be passed in when TopLink commits transactions.

 

Methods inherited from class oracle.toplink.transaction.AbstractTransactionController
jndiLookup, logTxStateTrace, logTxTrace

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

DEFAULT_REPORT_HEURISTICS

public static final boolean DEFAULT_REPORT_HEURISTICS
See Also:
Constant Field Values

reportHeuristicsOnCommit

public boolean reportHeuristicsOnCommit

Constructor Detail

OTSTransactionController

public OTSTransactionController()
PUBLIC: Return a new controller for use with an OTS 1.x compliant transaction system.

Method Detail

getReportHeuristicsOnCommit

public boolean getReportHeuristicsOnCommit()
PUBLIC: Return the value of the ReportHeuristics setting that will be passed in when TopLink commits transactions.
Returns:
true if commit calls will pass true as the ReportHeuristics value

setReportHeuristicsOnCommit

public void setReportHeuristicsOnCommit(boolean bool)
PUBLIC: Set the value of the ReportHeuristics setting that will be passed in when TopLink commits transactions.
Parameters:
bool - The value that commit calls will pass as the ReportHeuristics parameter

Skip navigation links

Copyright © 1998, 2006, Oracle. All Rights Reserved.