Java Client API Reference 6.0.2.61

com.baan.b3.boi1.dt
Class TransactionScope.Switch

java.lang.Object
  |
  +--com.baan.b3.boi1.dt.TransactionScope.Switch
Enclosing class:
TransactionScope

public abstract static class TransactionScope.Switch
extends java.lang.Object

Argument for the TransactionScope.doSwitch(com.baan.b3.boi1.dt.TransactionScope.Switch) method.
Programmers should create a subclass that does something useful. eg:

 public void myMethod(TransactionScope p_ts)
 {
     p_ts.doSwitch( new TransactionScope.Switch()
                    {
                        public void tsManager()
                        {
                            System.out.println("Manager transaction scope");
                        }

                        public void tsDefault()
                        {
                            System.out.println("Some other transaction scope");
                        }
                    };
 }
 

Author:
Baan Company

Constructor Summary
TransactionScope.Switch()
           
 
Method Summary
 void tsBusinessObject()
          Called when the switch argument is TransactionScope.BUSINESSOBJECT.
 void tsDefault()
          Called when no specific action is defined for the switch argument.
 void tsGlobal()
          Called when the switch argument is TransactionScope.GLOBAL.
 void tsManager()
          Called when the switch argument is TransactionScope.MANAGER.
 void tsNone()
          Called when the switch argument is TransactionScope.NONE.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionScope.Switch

public TransactionScope.Switch()
Method Detail

tsNone

public void tsNone()
Called when the switch argument is TransactionScope.NONE.
Calls tsDefault().
Threading policy: MTSafe

tsGlobal

public void tsGlobal()
Called when the switch argument is TransactionScope.GLOBAL.
Calls tsDefault().
Threading policy: MTSafe

tsManager

public void tsManager()
Called when the switch argument is TransactionScope.MANAGER.
Calls tsDefault().
Threading policy: MTSafe

tsBusinessObject

public void tsBusinessObject()
Called when the switch argument is TransactionScope.BUSINESSOBJECT.
Calls tsDefault().
Threading policy: MTSafe

tsDefault

public void tsDefault()
Called when no specific action is defined for the switch argument.
Does nothing.
Threading policy: MTSafe

Java Client API Reference 6.0.2.61

Visit the SSA Global website for more information.