org.jboss.tm.iiop.client
Class TransactionCurrent

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.jboss.tm.iiop.client.TransactionCurrent
All Implemented Interfaces:
Serializable, Current, CurrentOperations, Object, IDLEntity

public class TransactionCurrent
extends LocalObject
implements org.omg.CosTransactions.Current

This class implements org.omg.CosTransactions.Current.

Author:
Francisco Reverbel
See Also:
Serialized Form

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.
 org.omg.CosTransactions.Control get_control()
          Returns the Control associated with the current transaction.
 org.omg.CosTransactions.Status get_status()
          Gets the status of current transaction.
 String get_transaction_name()
          Returns the name of the current transaction.
static TransactionCurrent getInstance()
           
static void init(NamingContextExt nc)
           
 void resume(org.omg.CosTransactions.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.
 org.omg.CosTransactions.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(NamingContextExt nc)

getInstance

public static TransactionCurrent getInstance()

begin

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

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

commit

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

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

rollback

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

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

rollback_only

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

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

get_status

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

See Also:
CurrentOperations.get_status()

get_transaction_name

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

See Also:
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:
CurrentOperations.set_timeout(int)

get_control

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

See Also:
CurrentOperations.get_control()

suspend

public org.omg.CosTransactions.Control suspend()
Suspends the current transaction.

See Also:
CurrentOperations.suspend()

resume

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

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.