tyrex.tm.impl
Class ResourceImpl
java.lang.Object
|
+--org.omg.CORBA.portable.ObjectImpl
|
+--org.omg.CosTransactions._ResourceImplBase
|
+--tyrex.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
Fields inherited from class org.omg.CosTransactions._ResourceImplBase |
_ids_list |
Constructor Summary |
(package private) |
ResourceImpl(TransactionImpl tx)
Construct a new OTS resource for the underlying transaction
object. |
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 |
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.
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
- Overrides:
prepare
in class org.omg.CosTransactions._ResourceImplBase
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
- Overrides:
rollback
in class org.omg.CosTransactions._ResourceImplBase
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
- Overrides:
commit
in class org.omg.CosTransactions._ResourceImplBase
commit_one_phase
public void commit_one_phase()
throws org.omg.CosTransactions.HeuristicHazard
- Specified by:
commit_one_phase
in interface org.omg.CosTransactions.ResourceOperations
- Overrides:
commit_one_phase
in class org.omg.CosTransactions._ResourceImplBase
forget
public void forget()
- Specified by:
forget
in interface org.omg.CosTransactions.ResourceOperations
- Overrides:
forget
in class org.omg.CosTransactions._ResourceImplBase
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class org.omg.CORBA.portable.ObjectImpl
hashCode
public int hashCode()
- Overrides:
hashCode
in class org.omg.CORBA.portable.ObjectImpl
toString
public java.lang.String toString()
- Overrides:
toString
in class org.omg.CORBA.portable.ObjectImpl
Intalio Inc. (C) 1999-2001. All rights reserved.