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_MARKERISOLATION_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, setTransactionManagergetDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.TransactionOperationsexecute in class org.springframework.transaction.support.TransactionTemplateorg.springframework.transaction.TransactionExceptionpublic <T> T execute(org.springframework.orm.hibernate5.HibernateCallback<T> hibernateCallback)
execute in interface TransactionAndHibernateTemplatepublic void doWork(org.hibernate.jdbc.Work work)
throws org.hibernate.HibernateException
doWork in interface TransactionAndHibernateTemplateorg.hibernate.HibernateExceptionCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.