tyrex.tm.impl
Class ResourceImpl

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.CosTransactions._ResourceImplBase
          extended bytyrex.tm.impl.ResourceImpl
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, org.omg.CosTransactions.Resource, org.omg.CosTransactions.ResourceOperations, java.io.Serializable

public final class ResourceImpl
extends org.omg.CosTransactions._ResourceImplBase
implements org.omg.CosTransactions.Resource

Implements an OTS interface on top of TransactionImpl so we can register a local transaction as a resource in a global transaction. Requires that we use the OTS Java/IDL mapping.

Version:
$Revision: 1.2 $ $Date: 2001/03/12 19:20:20 $
Author:
Assaf Arkin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.omg.CosTransactions._ResourceImplBase
 
Constructor Summary
(package private) ResourceImpl(TransactionImpl tx)
          Construct a new OTS resource for the underlying transaction object.
 
Method Summary
 void commit_one_phase()
           
 void commit()
           
 boolean equals(java.lang.Object other)
           
 void forget()
           
 int hashCode()
           
 org.omg.CosTransactions.Vote prepare()
           
 void rollback()
           
 java.lang.String toString()
           
 
Methods inherited from class org.omg.CosTransactions._ResourceImplBase
_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
 
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

ResourceImpl

ResourceImpl(TransactionImpl tx)
Construct a new OTS resource for the underlying transaction object. The transaction must have been created as a subordinate with the parent transaction's Xid.

Method Detail

prepare

public org.omg.CosTransactions.Vote prepare()
                                     throws org.omg.CosTransactions.HeuristicMixed,
                                            org.omg.CosTransactions.HeuristicHazard
Specified by:
prepare in interface org.omg.CosTransactions.ResourceOperations
Throws:
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

rollback

public void rollback()
              throws org.omg.CosTransactions.HeuristicCommit,
                     org.omg.CosTransactions.HeuristicMixed,
                     org.omg.CosTransactions.HeuristicHazard
Specified by:
rollback in interface org.omg.CosTransactions.ResourceOperations
Throws:
org.omg.CosTransactions.HeuristicCommit
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

commit

public void commit()
            throws org.omg.CosTransactions.NotPrepared,
                   org.omg.CosTransactions.HeuristicRollback,
                   org.omg.CosTransactions.HeuristicMixed,
                   org.omg.CosTransactions.HeuristicHazard
Specified by:
commit in interface org.omg.CosTransactions.ResourceOperations
Throws:
org.omg.CosTransactions.NotPrepared
org.omg.CosTransactions.HeuristicRollback
org.omg.CosTransactions.HeuristicMixed
org.omg.CosTransactions.HeuristicHazard

commit_one_phase

public void commit_one_phase()
                      throws org.omg.CosTransactions.HeuristicHazard
Specified by:
commit_one_phase in interface org.omg.CosTransactions.ResourceOperations
Throws:
org.omg.CosTransactions.HeuristicHazard

forget

public void forget()
Specified by:
forget in interface org.omg.CosTransactions.ResourceOperations

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()

toString

public java.lang.String toString()


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.