站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 iiop API Documentation 英文版文档

TransactionCurrent (JBoss IIOP Plugin API) - JBoss 4.0.1 sp1 iiop API Documentation 英文版文档


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:
Current, org.omg.CosTransactions.Current, org.omg.CosTransactions.CurrentOperations, CurrentOperations, IDLEntity, Object, Serializable

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
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

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.

Specified by:
begin in interface org.omg.CosTransactions.CurrentOperations
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.

Specified by:
commit in interface org.omg.CosTransactions.CurrentOperations
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.

Specified by:
rollback in interface org.omg.CosTransactions.CurrentOperations
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.

Specified by:
rollback_only in interface org.omg.CosTransactions.CurrentOperations
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.

Specified by:
get_status in interface org.omg.CosTransactions.CurrentOperations
See Also:
CurrentOperations.get_status()

get_transaction_name

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

Specified by:
get_transaction_name in interface org.omg.CosTransactions.CurrentOperations
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.

Specified by:
set_timeout in interface org.omg.CosTransactions.CurrentOperations
See Also:
CurrentOperations.set_timeout(int)

get_control

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

Specified by:
get_control in interface org.omg.CosTransactions.CurrentOperations
See Also:
CurrentOperations.get_control()

suspend

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

Specified by:
suspend in interface org.omg.CosTransactions.CurrentOperations
See Also:
CurrentOperations.suspend()

resume

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

Specified by:
resume in interface org.omg.CosTransactions.CurrentOperations
Throws:
org.omg.CosTransactions.InvalidControl
See Also:
CurrentOperations.resume(org.omg.CosTransactions.Control)


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