|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Coordinator interface provides operations that are used by participants in a transaction.
Method Summary | |
Control |
create_subtransaction()
A new subtransaction is created whose parent is the transaction associated with the target object. |
Status |
get_parent_status()
If the transaction is a top-level transaction then its status is returned. |
Status |
get_status()
The status of the transaction. |
Status |
get_top_level_status()
The status of the top-level transaction is returned. |
String |
get_transaction_name()
Returns a printable string describing the transaction associated with the target object. |
PropagationContext |
get_txcontext()
Returns a PropagationContext object, which is used by one Transaction Service domain to export the current transaction to a new Transaction Service domain. |
int |
hash_top_level_tran()
|
int |
hash_transaction()
|
boolean |
is_ancestor_transaction(Coordinator tc)
This operation returns true if, and only if, the transaction associated with the target object is an ancestor of the transaction associated with the parameter object. |
boolean |
is_descendant_transaction(Coordinator tc)
This operation returns true if, and only if, the transaction associated with the target object is a descendant of the transaction associated with the parameter object. |
boolean |
is_related_transaction(Coordinator tc)
This operation returns true if, and only if, the transaction associated with the target object is related to the transaction associated with the parameter object. |
boolean |
is_same_transaction(Coordinator tc)
This operation returns true if, and only if, the target object and the parameter object both refer to the same transaction. |
boolean |
is_top_level_transaction()
This operation returns true if, and only if, the transaction associated with the target object is a top-level transaction. |
RecoveryCoordinator |
register_resource(Resource r)
Register a Resource as a participant in the transaction associated with the target object. |
void |
register_subtran_aware(SubtransactionAwareResource r)
This operation registers the specified subtransaction aware resource such that it will be notified when the subtransaction has committed or rolled back. |
void |
register_synchronization(Synchronization sync)
This operation registers the specified Synchronization object such that it will be notified to perform necessary processing prior to prepare being driven to resources registered with this Coordinator. |
void |
rollback_only()
The transaction associated with the target object is modified so that the only possible outcome is to rollback the transaction. |
Method Detail |
public Status get_status()
public Status get_parent_status()
public Status get_top_level_status()
public boolean is_same_transaction(Coordinator tc)
public boolean is_ancestor_transaction(Coordinator tc)
public boolean is_descendant_transaction(Coordinator tc)
public boolean is_related_transaction(Coordinator tc)
public boolean is_top_level_transaction()
public int hash_transaction()
public int hash_top_level_tran()
public RecoveryCoordinator register_resource(Resource r) throws Inactive
Inactive
public void register_synchronization(Synchronization sync) throws Inactive, SynchronizationUnavailable
Inactive
SynchronizationUnavailable
public void register_subtran_aware(SubtransactionAwareResource r) throws Inactive, NotSubtransaction
Inactive
NotSubtransaction
public void rollback_only() throws Inactive
Inactive
public String get_transaction_name()
public Control create_subtransaction() throws SubtransactionsUnavailable, Inactive
SubtransactionsUnavailable
Inactive
public PropagationContext get_txcontext() throws Unavailable
Unavailable
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |