org.objectweb.jotm.examples
Class OtsAccount

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--org.omg.CosTransactions._TransactionalObjectImplBase
              |
              +--org.objectweb.jotm.examples.OtsAccount
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, org.omg.CosTransactions.Synchronization, org.omg.CosTransactions.SynchronizationOperations, org.omg.CosTransactions.TransactionalObject, org.omg.CosTransactions.TransactionalObjectOperations

public class OtsAccount
extends org.omg.CosTransactions._TransactionalObjectImplBase
implements org.omg.CosTransactions.Resource, org.omg.CosTransactions.Synchronization

A very simple implementation of OTS resource and synchronization interfaces.

See Also:
Serialized Form

Constructor Summary
OtsAccount()
           
 
Method Summary
 void after_completion(org.omg.CosTransactions.Status s)
           
 void before_completion()
           
 void commit_one_phase()
           
 void commit()
           
 void forget()
           
 org.omg.CosTransactions.Vote prepare()
           
 void rollback()
           
 
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

OtsAccount

public OtsAccount()
Method Detail

prepare

public org.omg.CosTransactions.Vote prepare()
Specified by:
prepare in interface org.omg.CosTransactions.ResourceOperations

commit

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

forget

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

commit_one_phase

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

rollback

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

before_completion

public void before_completion()
Specified by:
before_completion in interface org.omg.CosTransactions.SynchronizationOperations

after_completion

public void after_completion(org.omg.CosTransactions.Status s)
Specified by:
after_completion in interface org.omg.CosTransactions.SynchronizationOperations