EJBTransaction:
SetRollbackOnly method
Description
Modifies a transaction associated with a calling thread so
that the only possible outcome is to roll back the transaction.
Syntax
1 |
<span>ejbtrans</span>.SetRollbackOnly ( <span> </span>) |
Argument |
Description |
---|---|
ejbtrans |
The name of an EJBTransaction object |
Return Values
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 |
// Instance variables:<br>// EJBConnection conn<br>// EJBTransaction trans<br> <br>trans = conn.GetEJBTransaction()<br>trans.<span>SetRollbackOnly</span>() |
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