org.openorb.pss.connector.database
Class DatabaseResource
java.lang.Object
org.omg.PortableServer.Servant
org.omg.CosTransactions.ResourcePOA
org.openorb.pss.connector.database.DatabaseResource
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, org.omg.CosTransactions.ResourceOperations
public class DatabaseResource
- extends org.omg.CosTransactions.ResourcePOA
This class is a very simple resource. It is only used to received the prepare statement of the 2.P.C.
By this way, we will be able to call 'end' on the transaction session.
- Author:
- Jerome Daniel
Methods inherited from class org.omg.CosTransactions.ResourcePOA |
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseResource
public DatabaseResource(TransactionalSession session,
org.omg.CosTransactions.Coordinator coordinator)
- Constructor
prepare
public org.omg.CosTransactions.Vote prepare()
throws org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard
- This operation is called in the first phase of the 2.P.C
- 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
- 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
- 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
- Throws:
org.omg.CosTransactions.HeuristicHazard
forget
public void forget()
removeItself
public void removeItself()
- This operation is used to remove this resource. It unregister itself from the POA.