SetRollbackOnly
Description
Modifies a transaction associated with a calling thread so that
the only possible outcome is to roll back the transaction.
Syntax
|
1 |
ejbtrans.SetRollbackOnly ( ) |
|
Argument |
Description |
|---|---|
|
ejbtrans |
The name of an EJBTransaction object |
Return value
None
Examples
In this example, a participant in a transaction has determined
that it should be rolled back. The participant gets a reference to the
current transaction and votes to roll back the transaction:
|
1 2 3 4 5 6 |
// Instance variables: // EJBConnection conn // EJBTransaction trans trans = conn.GetEJBTransaction() trans.SetRollbackOnly() |
Usage
Rollback is typically called by the originator of the transaction,
but another participant in a transaction can call SetRollbackOnly to
vote that the transaction should be rolled back.
See also
GetEJBTransaction
(EJBConnection class)
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest