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, wait
geTransactionType
protected 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()
Transactional
begin
in interface Transactional
public final void commit()
Transactional
commit
in interface Transactional
public final TransactionStatus getStatus()
getStatus
in interface Transactional
public final void rollback()
Transactional
rollback
in interface Transactional
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.