public final class Transaction.LockContext
extends java.lang.Object
The LockContext is created when the Transaction.getLockContext() is called firstly, and destroyed when the transaction is finished.Call the method lock(), submit and clear the lock histories added previously.
In *Add method, when the parameter of Object type is detected as the Collection object or Array, the parameter is extracted recursively and classify into TTable object and other object as key, since table and key could neither be Collection object nor Array.
Modifier and Type | Method and Description |
---|---|
void |
lock() |
Transaction.LockContext |
rAdd(java.lang.Object... mix) |
Transaction.LockContext |
rAdd(java.lang.Object key,
TTable<?,?>... ttables) |
Transaction.LockContext |
wAdd(java.lang.Object... mix) |
Transaction.LockContext |
wAdd(java.lang.Object key,
TTable<?,?>... ttables) |
public Transaction.LockContext rAdd(java.lang.Object key, TTable<?,?>... ttables)
public Transaction.LockContext rAdd(java.lang.Object... mix)
public Transaction.LockContext wAdd(java.lang.Object key, TTable<?,?>... ttables)
public Transaction.LockContext wAdd(java.lang.Object... mix)
public void lock()