public class TransactionImpl extends ContextRegistry implements Transaction
| Constructor and Description |
|---|
TransactionImpl(Iterable<TransactionMember.Wrapper> factories,
Runnable afterClose) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntry(org.glassfish.hk2.api.ActiveDescriptor key,
Object value)
Called when a new object is registered.
|
void |
close() |
void |
commit() |
TransactionState |
getStatus() |
void |
rollback() |
containsKey, destroyOne, findOrCreatepublic TransactionImpl(Iterable<TransactionMember.Wrapper> factories, Runnable afterClose)
public TransactionState getStatus()
getStatus in interface Transactionprotected void addEntry(org.glassfish.hk2.api.ActiveDescriptor key,
Object value)
ContextRegistryaddEntry in class ContextRegistrypublic void commit()
throws TransactionException
commit in interface TransactionTransactionExceptionpublic void rollback()
throws TransactionException
rollback in interface TransactionTransactionExceptionpublic void close()
ContextRegistryclose in interface AutoCloseableclose in interface Transactionclose in class ContextRegistryCopyright © 2015. All rights reserved.