Novell exteNd Messaging Platform 5.2

org.omg.CosTransactions
Class _CurrentStub

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.CosTransactions._CurrentStub
All Implemented Interfaces:
Current, Current, CurrentOperations, CurrentOperations, IDLEntity, Object, Serializable

public class _CurrentStub
extends ObjectImpl
implements Current

Stub for Current

See Also:
Serialized Form

Constructor Summary
_CurrentStub()
           
 
Method Summary
 String[] _ids()
          Retrieves a string array containing the repository identifiers supported by this ObjectImpl object.
 void begin()
          Create a new transaction and associate it with the current thread.
 void commit(boolean report_heuristics)
          Complete the transaction associated with the current thread by committing all operations.
 Control get_control()
          The Control object that represents the transaction associated with the current thread.
 Status get_status()
          The Status of the transaction associated with the current thread.
 int get_timeout()
           
 String get_transaction_name()
          The printable string describing the transaction associated with the current thread.
 void resume(Control which)
          The current tread is associated with the transaciton represented by the Control object in the parameter.
 void rollback_only()
          The transaction associated with the current thread is modified so that the only posible outcome is to rollback the transaction.
 void rollback()
          Complete the transaction associated with the current thread by rolling back all operations.
 void set_timeout(int seconds)
          Set the time-out period in seconds of the transaction associated with the current thread
 Control suspend()
          If there is a tread associated with the current thread, it is disassociated with current thread and a Control object representing the transaction is returned.
 
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
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

_CurrentStub

public _CurrentStub()
Method Detail

begin

public void begin()
           throws SubtransactionsUnavailable
Description copied from interface: CurrentOperations
Create a new transaction and associate it with the current thread.

Specified by:
begin in interface CurrentOperations
Throws:
SubtransactionsUnavailable

commit

public void commit(boolean report_heuristics)
            throws NoTransaction,
                   HeuristicMixed,
                   HeuristicHazard
Description copied from interface: CurrentOperations
Complete the transaction associated with the current thread by committing all operations.

Specified by:
commit in interface CurrentOperations
Throws:
NoTransaction
HeuristicMixed
HeuristicHazard

rollback

public void rollback()
              throws NoTransaction
Description copied from interface: CurrentOperations
Complete the transaction associated with the current thread by rolling back all operations.

Specified by:
rollback in interface CurrentOperations
Throws:
NoTransaction

rollback_only

public void rollback_only()
                   throws NoTransaction
Description copied from interface: CurrentOperations
The transaction associated with the current thread is modified so that the only posible outcome is to rollback the transaction.

Specified by:
rollback_only in interface CurrentOperations
Throws:
NoTransaction

get_status

public Status get_status()
Description copied from interface: CurrentOperations
The Status of the transaction associated with the current thread.

Specified by:
get_status in interface CurrentOperations

get_transaction_name

public String get_transaction_name()
Description copied from interface: CurrentOperations
The printable string describing the transaction associated with the current thread.

Specified by:
get_transaction_name in interface CurrentOperations

set_timeout

public void set_timeout(int seconds)
Description copied from interface: CurrentOperations
Set the time-out period in seconds of the transaction associated with the current thread

Specified by:
set_timeout in interface CurrentOperations

get_timeout

public int get_timeout()
Specified by:
get_timeout in interface CurrentOperations

get_control

public Control get_control()
Description copied from interface: CurrentOperations
The Control object that represents the transaction associated with the current thread.

Specified by:
get_control in interface CurrentOperations

suspend

public Control suspend()
Description copied from interface: CurrentOperations
If there is a tread associated with the current thread, it is disassociated with current thread and a Control object representing the transaction is returned. Otherwise, a null pointer is returned.

Specified by:
suspend in interface CurrentOperations

resume

public void resume(Control which)
            throws InvalidControl
Description copied from interface: CurrentOperations
The current tread is associated with the transaciton represented by the Control object in the parameter.

Specified by:
resume in interface CurrentOperations
Throws:
InvalidControl

_ids

public String[] _ids()
Description copied from class: ObjectImpl
Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. For example, for a stub, this method returns information about all the interfaces supported by the stub.

Specified by:
_ids in class ObjectImpl
Returns:
the array of all repository identifiers supported by this ObjectImpl instance

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.