public class MockTransactionTemplate extends org.springframework.transaction.support.TransactionTemplate implements TransactionAndHibernateTemplate
Modifier and Type | Field and Description |
---|---|
static MockTransactionTemplate |
INSTANCE |
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKER
ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT
Constructor and Description |
---|
MockTransactionTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
doWork(org.hibernate.jdbc.Work work) |
<T> T |
execute(org.springframework.orm.hibernate5.HibernateCallback<T> hibernateCallback) |
<T> T |
execute(org.springframework.transaction.support.TransactionCallback<T> action) |
afterPropertiesSet, equals, getTransactionManager, setTransactionManager
getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final MockTransactionTemplate INSTANCE
public <T> T execute(org.springframework.transaction.support.TransactionCallback<T> action) throws org.springframework.transaction.TransactionException
execute
in interface org.springframework.transaction.support.TransactionOperations
execute
in class org.springframework.transaction.support.TransactionTemplate
org.springframework.transaction.TransactionException
public <T> T execute(org.springframework.orm.hibernate5.HibernateCallback<T> hibernateCallback)
execute
in interface TransactionAndHibernateTemplate
public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException
doWork
in interface TransactionAndHibernateTemplate
org.hibernate.HibernateException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.