public abstract class AbstractTransaction extends Object implements Transactional
| Modifier and Type | Field and Description | 
|---|---|
protected ConnectionAdapter | 
connAdapter  | 
protected String | 
contextName  | 
protected static org.slf4j.Logger | 
logger  | 
protected TransactionScope | 
transactionScope  | 
| Constructor and Description | 
|---|
AbstractTransaction(String contextName,
                   ConnectionAdapter connAdapter,
                   TransactionScope transactionScope)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
begin()
The TransactionManager.begin method starts a global transaction and associates 
 the transaction context with the calling thread. 
 | 
void | 
commit()
The TransactionManager.commit method completes the transaction currently associated 
 with the calling thread. 
 | 
TransactionStatus | 
getStatus()  | 
abstract ConnectionAdapter | 
open()
Open new connection with default connection properties from driver version. 
 | 
void | 
rollback()
The TransactionManager.rollback method rolls back the transaction associated with the current thread. 
 | 
String | 
toString()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgeTransactionTypeprotected static final org.slf4j.Logger logger
protected final TransactionScope transactionScope
protected final String contextName
protected final ConnectionAdapter connAdapter
public AbstractTransaction(String contextName, ConnectionAdapter connAdapter, TransactionScope transactionScope)
public abstract ConnectionAdapter open()
public final void begin()
Transactionalbegin in interface Transactionalpublic final void commit()
Transactionalcommit in interface Transactionalpublic final TransactionStatus getStatus()
getStatus in interface Transactionalpublic final void rollback()
Transactionalrollback in interface TransactionalCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.