CORBACurrent object – PB Docs 150

CORBACurrent object

The CORBACurrent service object provides information
about the EAServer transaction
associated with a calling thread and enables the caller to control
the transaction. The CORBACurrent object supports most of the methods
defined by the CORBACurrent interface.

Properties

CORBACurrent property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing
information about the class definition of the object or control

Events

CORBACurrent event

Occurs

Constructor

When the object is created

Destructor

When the object is destroyed

Functions

CORBACurrent function

Datatype returned

Description

BeginTransaction

Boolean

Creates a new transaction and associates
it with the calling thread.

ClassName

String

Returns the class of the object.

CommitTransaction

Integer

Commits the transaction associated with
the calling thread.

GetContextService

Integer

Creates a reference to a context-specific
instance of the specified service.

GetParent

PowerObject

Returns a reference to the name of the
parent object.

GetStatus

Integer

Returns the status of the transaction
associated with the calling thread.

GetTransactionName

String

Returns a string describing the transaction
associated with the calling thread.

Init

Integer

Initializes an instance of the CORBACurrent
service object.

PostEvent

Integer

Adds an event to the end of the message
queue for the object.

ResumeTransaction

Integer

Associates the transaction passed in
with the calling thread.

RollbackOnly

Integer

Modifies the transaction associated with
the calling thread so that the outcome is to roll back the transaction.

RollbackTransaction

Integer

Rolls back the transaction associated
with the calling thread.

SetTimeout

Boolean

Sets the timeout value for the top-level
transaction. The transaction is rolled back if it does not complete
before the timeout expires.

SuspendTransaction

Unsignedlong

Suspends the transaction associated with
the calling thread and returns a handle to the transaction.

TriggerEvent

Integer

Triggers a specified event in the object
and executes the script for the event.

TypeOf

Object

Returns the type of the object.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x