org.objectweb.jotm.impl.ots
Class TransactionImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--org.omg.CosTransactions._TransactionalObjectImplBase
              |
              +--org.objectweb.jotm.impl.ots.TransactionImpl
All Implemented Interfaces:
org.omg.CosTransactions.Control, org.omg.CosTransactions.ControlOperations, org.omg.CosTransactions.Coordinator, org.omg.CosTransactions.CoordinatorOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, java.io.Serializable, org.omg.CosTransactions.Terminator, org.omg.CosTransactions.TerminatorOperations, org.omg.CosTransactions.TransactionalObject, org.omg.CosTransactions.TransactionalObjectOperations

public class TransactionImpl
extends org.omg.CosTransactions._TransactionalObjectImplBase
implements org.omg.CosTransactions.Control, org.omg.CosTransactions.Coordinator, org.omg.CosTransactions.Terminator

See Also:
Serialized Form

Constructor Summary
TransactionImpl()
           
 
Method Summary
 void begin()
           
 void commit(boolean report_heuristics)
           
 org.omg.CosTransactions.Control create_subtransaction()
           
 org.omg.CosTransactions.Control get_control()
           
 org.omg.CosTransactions.Coordinator get_coordinator()
           
 org.omg.CosTransactions.Status get_parent_status()
           
 org.omg.CosTransactions.Status get_status()
           
 org.omg.CosTransactions.Terminator get_terminator()
           
 int get_timeout()
           
 org.omg.CosTransactions.Status get_top_level_status()
           
 java.lang.String get_transaction_name()
           
 org.omg.CosTransactions.PropagationContext get_txcontext()
           
static org.omg.CosTransactions.Control getOTSTransaction()
          Retrieve a transaction associated with current thread.
 int hash_top_level_tran()
           
 int hash_transaction()
           
 boolean is_ancestor_transaction(org.omg.CosTransactions.Coordinator coord)
           
 boolean is_descendant_transaction(org.omg.CosTransactions.Coordinator coord)
           
 boolean is_related_transaction(org.omg.CosTransactions.Coordinator coord)
           
 boolean is_same_transaction(org.omg.CosTransactions.Coordinator coord)
           
 boolean is_top_level_transaction()
           
 org.omg.CosTransactions.RecoveryCoordinator register_resource(org.omg.CosTransactions.Resource res)
           
 void register_subtran_aware(org.omg.CosTransactions.SubtransactionAwareResource res)
           
 void register_synchronization(org.omg.CosTransactions.Synchronization syn)
           
 void resume(org.omg.CosTransactions.Control ctrl)
           
 void rollback_only()
           
 void rollback()
           
 void set_timeout(int timeout)
           
 org.omg.CosTransactions.Control suspend()
           
 
Methods inherited from class org.omg.CosTransactions._TransactionalObjectImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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

TransactionImpl

public TransactionImpl()
Method Detail

commit

public void commit(boolean report_heuristics)
            throws org.omg.CosTransactions.HeuristicMixed,
                   org.omg.CosTransactions.HeuristicHazard
Specified by:
commit in interface org.omg.CosTransactions.TerminatorOperations
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

rollback

public void rollback()
Specified by:
rollback in interface org.omg.CosTransactions.TerminatorOperations

register_resource

public org.omg.CosTransactions.RecoveryCoordinator register_resource(org.omg.CosTransactions.Resource res)
                                                              throws org.omg.CosTransactions.Inactive
Specified by:
register_resource in interface org.omg.CosTransactions.CoordinatorOperations
org.omg.CosTransactions.Inactive

register_synchronization

public void register_synchronization(org.omg.CosTransactions.Synchronization syn)
                              throws org.omg.CosTransactions.Inactive,
                                     org.omg.CosTransactions.SynchronizationUnavailable
Specified by:
register_synchronization in interface org.omg.CosTransactions.CoordinatorOperations
org.omg.CosTransactions.Inactive
org.omg.CosTransactions.SynchronizationUnavailable

register_subtran_aware

public void register_subtran_aware(org.omg.CosTransactions.SubtransactionAwareResource res)
                            throws org.omg.CosTransactions.Inactive,
                                   org.omg.CosTransactions.NotSubtransaction
Specified by:
register_subtran_aware in interface org.omg.CosTransactions.CoordinatorOperations
org.omg.CosTransactions.Inactive
org.omg.CosTransactions.NotSubtransaction

rollback_only

public void rollback_only()
Specified by:
rollback_only in interface org.omg.CosTransactions.CoordinatorOperations

get_status

public org.omg.CosTransactions.Status get_status()
Specified by:
get_status in interface org.omg.CosTransactions.CoordinatorOperations

get_parent_status

public org.omg.CosTransactions.Status get_parent_status()
Specified by:
get_parent_status in interface org.omg.CosTransactions.CoordinatorOperations

get_top_level_status

public org.omg.CosTransactions.Status get_top_level_status()
Specified by:
get_top_level_status in interface org.omg.CosTransactions.CoordinatorOperations

is_same_transaction

public boolean is_same_transaction(org.omg.CosTransactions.Coordinator coord)
Specified by:
is_same_transaction in interface org.omg.CosTransactions.CoordinatorOperations

is_related_transaction

public boolean is_related_transaction(org.omg.CosTransactions.Coordinator coord)
Specified by:
is_related_transaction in interface org.omg.CosTransactions.CoordinatorOperations

is_ancestor_transaction

public boolean is_ancestor_transaction(org.omg.CosTransactions.Coordinator coord)
Specified by:
is_ancestor_transaction in interface org.omg.CosTransactions.CoordinatorOperations

is_descendant_transaction

public boolean is_descendant_transaction(org.omg.CosTransactions.Coordinator coord)
Specified by:
is_descendant_transaction in interface org.omg.CosTransactions.CoordinatorOperations

is_top_level_transaction

public boolean is_top_level_transaction()
Specified by:
is_top_level_transaction in interface org.omg.CosTransactions.CoordinatorOperations

hash_transaction

public int hash_transaction()
Specified by:
hash_transaction in interface org.omg.CosTransactions.CoordinatorOperations

hash_top_level_tran

public int hash_top_level_tran()
Specified by:
hash_top_level_tran in interface org.omg.CosTransactions.CoordinatorOperations

get_transaction_name

public java.lang.String get_transaction_name()
Specified by:
get_transaction_name in interface org.omg.CosTransactions.CoordinatorOperations

set_timeout

public void set_timeout(int timeout)

get_timeout

public int get_timeout()

suspend

public org.omg.CosTransactions.Control suspend()

resume

public void resume(org.omg.CosTransactions.Control ctrl)
            throws org.omg.CosTransactions.InvalidControl
org.omg.CosTransactions.InvalidControl

get_control

public org.omg.CosTransactions.Control get_control()

create_subtransaction

public org.omg.CosTransactions.Control create_subtransaction()
Specified by:
create_subtransaction in interface org.omg.CosTransactions.CoordinatorOperations

get_txcontext

public org.omg.CosTransactions.PropagationContext get_txcontext()
Specified by:
get_txcontext in interface org.omg.CosTransactions.CoordinatorOperations

get_terminator

public org.omg.CosTransactions.Terminator get_terminator()
                                                  throws org.omg.CosTransactions.Unavailable
Specified by:
get_terminator in interface org.omg.CosTransactions.ControlOperations
org.omg.CosTransactions.Unavailable

get_coordinator

public org.omg.CosTransactions.Coordinator get_coordinator()
                                                    throws org.omg.CosTransactions.Unavailable
Specified by:
get_coordinator in interface org.omg.CosTransactions.ControlOperations
org.omg.CosTransactions.Unavailable

begin

public void begin()

getOTSTransaction

public static org.omg.CosTransactions.Control getOTSTransaction()
                                                         throws NoTransactionException
Retrieve a transaction associated with current thread. Do it by the retrieval of current CoreTransaction and its wrapper TODO: Get rid of this method

NoTransactionException