|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omg.CORBA.LocalObject
org.jacorb.transaction.TransactionCurrentImpl
public class TransactionCurrentImpl
This class represents the transaction current. It is a very simple implementation wich mostly maps to the methods in the control.
| Constructor Summary | |
|---|---|
TransactionCurrentImpl()
Creates a non-functional current. |
|
TransactionCurrentImpl(ORB orb,
int slot_id)
|
|
| Method Summary | |
|---|---|
void |
begin()
Start a new transaction. |
void |
commit(boolean report_heuristics)
|
Control |
get_control()
This and the following method should actually throw NoTransaction, but that is against the spec. |
Status |
get_status()
|
String |
get_transaction_name()
|
static Control |
getControl(ORB orb)
This method is a convenience method for the server programmer the exctract the Control from the PICurrent. |
void |
resume(Control which)
|
void |
rollback_only()
|
void |
rollback()
|
void |
set_timeout(int seconds)
|
void |
setCurrentThreadContext(Control control)
|
Control |
suspend()
|
| Methods inherited from class org.omg.CORBA.LocalObject |
|---|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
|---|
public TransactionCurrentImpl(ORB orb,
int slot_id)
public TransactionCurrentImpl()
| Method Detail |
|---|
public static Control getControl(ORB orb)
public void begin()
throws SubtransactionsUnavailable
SubtransactionsUnavailable
public void commit(boolean report_heuristics)
throws NoTransaction,
HeuristicMixed,
HeuristicHazard
NoTransaction
HeuristicMixed
HeuristicHazardpublic Control get_control()
public Status get_status()
public String get_transaction_name()
public void resume(Control which)
throws InvalidControl
InvalidControl
public void rollback()
throws NoTransaction
NoTransaction
public void rollback_only()
throws NoTransaction
NoTransactionpublic void set_timeout(int seconds)
public Control suspend()
public void setCurrentThreadContext(Control control)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||