|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omg.PortableServer.Servant
com.sun.jts.codegen.jtsxa.OTSResourcePOA
com.sun.jts.jtsxa.OTSResourceImpl
public class OTSResourceImpl
| Constructor Summary | |
|---|---|
OTSResourceImpl(Xid xid,
XAResource xaRes,
TransactionState tranState)
Construct an XAResource object. |
|
| Method Summary | |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exceptions,
org.omg.CORBA.ContextList contexts)
|
org.omg.CORBA.Object |
_duplicate()
Ensure that the Native XA interface is initialized. |
org.omg.CORBA.DomainManager[] |
_get_domain_managers()
|
org.omg.CORBA.Object |
_get_interface_def()
|
org.omg.CORBA.Policy |
_get_policy(int policy_type)
|
int |
_hash(int maximum)
|
boolean |
_is_a(java.lang.String repository_id)
|
boolean |
_is_equivalent(org.omg.CORBA.Object that)
|
boolean |
_non_existent()
|
void |
_release()
|
org.omg.CORBA.Request |
_request(java.lang.String operation)
|
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
|
void |
commit_one_phase()
Commit a transaction, using one-phase optimization. |
void |
commit()
Commit a transaction. |
void |
forget()
The resource manager can forget all knowledge of the transaction. |
OTSResource |
getCORBAObjReference()
Returns the CORBA Object which represents this object. |
org.omg.CosTransactions.otid_t |
getGlobalTID()
Return the global transaction identifier. |
org.omg.CosTransactions.Vote |
prepare()
Prepare a transaction. |
void |
rollback()
Rollback a transaction. |
java.lang.String |
toString()
|
| Methods inherited from class com.sun.jts.codegen.jtsxa.OTSResourcePOA |
|---|
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
|---|
_default_POA, _get_delegate, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OTSResourceImpl(Xid xid,
XAResource xaRes,
TransactionState tranState)
xid - the global transaction identifierxaRes - the XAServer object associated with the resource manager| Method Detail |
|---|
public void commit()
throws org.omg.CosTransactions.NotPrepared,
org.omg.CosTransactions.HeuristicRollback,
org.omg.CosTransactions.HeuristicHazard,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CORBA.SystemException
commit in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.NotPrepared - the resource manager has not been called
for prepare.
org.omg.CosTransactions.HeuristicRollback - a heuristic decision has been made,
and the resource rolledback.
org.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.
org.omg.CosTransactions.HeuristicMixed - a heuristic decision has been made, some
updates have been commited
and others rolled back.
org.omg.CORBA.SystemException - an unindentified error has been reported
by the resource manager.
public void commit_one_phase()
throws org.omg.CosTransactions.HeuristicHazard,
org.omg.CORBA.SystemException
commit_one_phase in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.
org.omg.CORBA.SystemException - an unindentified error has been reported
by the resource manager.public void forget()
forget in interface org.omg.CosTransactions.ResourceOperations
public org.omg.CosTransactions.Vote prepare()
throws org.omg.CosTransactions.HeuristicHazard,
org.omg.CosTransactions.HeuristicMixed
This is the first phase of the two-phase commit protocol.
prepare in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.
org.omg.CosTransactions.HeuristicMixed - a heuristic decision has been made,
some updates have been commited
and others rolled back.
public void rollback()
throws org.omg.CosTransactions.HeuristicCommit,
org.omg.CosTransactions.HeuristicMixed,
org.omg.CosTransactions.HeuristicHazard,
org.omg.CORBA.SystemException
rollback in interface org.omg.CosTransactions.ResourceOperationsorg.omg.CosTransactions.HeuristicCommit - a heuristic decision has been made,
and the resource committed.
org.omg.CosTransactions.HeuristicHazard - a heuristic decision has been made,
but the disposition of
the resource is unknown.
org.omg.CosTransactions.HeuristicMixed - a heuristic decision has been made,
some updates have been commited
and others rolled back.
org.omg.CORBA.SystemException - an unindentified error has been reported
by the resource managerpublic org.omg.CosTransactions.otid_t getGlobalTID()
getGlobalTID in interface OTSResourceOperationspublic OTSResource getCORBAObjReference()
public final java.lang.String toString()
toString in class java.lang.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic boolean _is_a(java.lang.String repository_id)
_is_a in interface org.omg.CORBA.Object_is_a in class org.omg.PortableServer.Servantpublic boolean _is_equivalent(org.omg.CORBA.Object that)
_is_equivalent in interface org.omg.CORBA.Objectpublic boolean _non_existent()
_non_existent in interface org.omg.CORBA.Object_non_existent in class org.omg.PortableServer.Servantpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exceptions,
org.omg.CORBA.ContextList contexts)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _get_interface_def()
_get_interface_def in interface org.omg.CORBA.Object_get_interface_def in class org.omg.PortableServer.Servantpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||