public class CurrentTransaction extends Object
Constructor and Description |
---|
CurrentTransaction() |
Modifier and Type | Method and Description |
---|---|
static ControlImpl |
getCurrent()
Returns the current Control object.
|
static boolean |
isTxAssociated() |
static void |
recreate(GlobalTID tid,
int timeout)
Recreates a transaction based on the information contained in the
transaction id (tid) and associates the current thread of control with
the recreated transaction.
|
static void |
release(GlobalTID tid)
Disassociates the current thread of control from the specified
transaction.
|
public static boolean isTxAssociated()
public static ControlImpl getCurrent() throws TRANSACTION_ROLLEDBACK
That is, the Control object that corresponds to the thread under which the operation was invoked. If there is no such association the null value is returned.
TRANSACTION_ROLLEDBACK
public static void recreate(GlobalTID tid, int timeout)
tid
- the transaction id.public static void release(GlobalTID tid)
tid
- the transaction id.Copyright © 2021. All rights reserved.