public abstract class TransactedObject extends Object
TransactionContext and Transaction.| Modifier | Constructor and Description | 
|---|---|
protected  | 
TransactedObject(TransactionContext context,
                Object owner)
Initializes a new instance with a specified owner. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
checkTransaction(Transaction transaction)
Verifies that a specified transaction is in the same context as this
    transacted object and throws an  
ArgumentException if it is not. | 
TransactionContext | 
getContext()
Gets the transaction context in which this object can be modified. 
 | 
Object | 
getOwner()
Gets the object that owns this transacted object, or  
null if this object
    does not have an owner. | 
protected TransactedObject(@Nonnull TransactionContext context, Object owner)
context - The context in which this object can be modified.owner - The object that owns this transacted object.public final TransactionContext getContext()
public final Object getOwner()
null if this object
    does not have an owner.protected final void checkTransaction(@Nonnull Transaction transaction)
ArgumentException if it is not.transaction - The transaction to verify.ArgumentException - The specified transaction is in a different context than this transacted object.