org.jboss.tm.iiop.client
Class TransactionCurrent

java.lang.Object
  extended byorg.omg.CORBA.LocalObject
      extended byorg.jboss.tm.iiop.client.TransactionCurrent
All Implemented Interfaces:
org.omg.CORBA.Object

public class TransactionCurrent
extends org.omg.CORBA.LocalObject

This class implements org.omg.CosTransactions.Current.


Constructor Summary
TransactionCurrent()
           
 
Method Summary
 void begin()
          Begins a new transaction, which will become the current transaction associated with the calling thread.
 void commit(boolean reportHeuristics)
          Commits the current transaction.
 Control get_control()
          Returns the Control associated with the current transaction.
 Status get_status()
          Gets the status of current transaction.
 java.lang.String get_transaction_name()
          Returns the name of the current transaction.
static TransactionCurrent (src) getInstance()
           
static void init(org.omg.CosNaming.NamingContextExt nc)
           
 void resume(Control whichTransaction)
          Resumes the specified transaction.
 void rollback_only()
          Marks the current transaction as rollback only.
 void rollback()
          Rolls the current transaction back.
 void set_timeout(int timeOut)
          Sets the transaction time out that will be in effect for transactions created after this call.
 Control suspend()
          Suspends the current transaction.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionCurrent

public TransactionCurrent()
Method Detail

init

public static void init(org.omg.CosNaming.NamingContextExt nc)

getInstance

public static TransactionCurrent (src)  getInstance()

begin

public void begin()
           throws SubtransactionsUnavailable
Begins a new transaction, which will become the current transaction associated with the calling thread.

Throws:
SubtransactionsUnavailable
See Also:
org.omg.CosTransactions.CurrentOperations#begin()

commit

public void commit(boolean reportHeuristics)
            throws NoTransaction,
                   HeuristicHazard,
                   HeuristicMixed
Commits the current transaction.

Throws:
NoTransaction
HeuristicHazard
HeuristicMixed
See Also:
org.omg.CosTransactions.CurrentOperations#commit(boolean)

rollback

public void rollback()
              throws NoTransaction
Rolls the current transaction back.

Throws:
NoTransaction
See Also:
org.omg.CosTransactions.CurrentOperations#rollback()

rollback_only

public void rollback_only()
                   throws NoTransaction
Marks the current transaction as rollback only.

Throws:
NoTransaction
See Also:
org.omg.CosTransactions.CurrentOperations#rollback_only()

get_status

public Status get_status()
Gets the status of current transaction.

See Also:
org.omg.CosTransactions.CurrentOperations#get_status()

get_transaction_name

public java.lang.String get_transaction_name()
Returns the name of the current transaction.

See Also:
org.omg.CosTransactions.CurrentOperations#get_transaction_name()

set_timeout

public void set_timeout(int timeOut)
Sets the transaction time out that will be in effect for transactions created after this call.

See Also:
org.omg.CosTransactions.CurrentOperations#set_timeout(int)

get_control

public Control get_control()
Returns the Control associated with the current transaction.

See Also:
org.omg.CosTransactions.CurrentOperations#get_control()

suspend

public Control suspend()
Suspends the current transaction.

See Also:
org.omg.CosTransactions.CurrentOperations#suspend()

resume

public void resume(Control whichTransaction)
            throws InvalidControl
Resumes the specified transaction.

Throws:
InvalidControl
See Also:
org.omg.CosTransactions.CurrentOperations#resume(org.omg.CosTransactions.Control)