Package org.opennms.netmgt.dao.mock
Class MockTransactionTemplate
- java.lang.Object
-
- org.springframework.transaction.support.DefaultTransactionDefinition
-
- org.springframework.transaction.support.TransactionTemplate
-
- org.opennms.netmgt.dao.mock.MockTransactionTemplate
-
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.beans.factory.InitializingBean
,org.springframework.transaction.support.TransactionOperations
,org.springframework.transaction.TransactionDefinition
public class MockTransactionTemplate extends org.springframework.transaction.support.TransactionTemplate
- Author:
- Mathew Brozowski
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKER
-
Fields inherited from interface org.springframework.transaction.TransactionDefinition
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 Summary
Constructors Constructor Description MockTransactionTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
<T> T
execute(org.springframework.transaction.support.TransactionCallback<T> action)
-
Methods inherited from class org.springframework.transaction.support.TransactionTemplate
getTransactionManager, setTransactionManager
-
Methods inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
equals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout, toString
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classorg.springframework.transaction.support.TransactionTemplate
-
execute
public <T> T execute(org.springframework.transaction.support.TransactionCallback<T> action) throws org.springframework.transaction.TransactionException
- Specified by:
execute
in interfaceorg.springframework.transaction.support.TransactionOperations
- Overrides:
execute
in classorg.springframework.transaction.support.TransactionTemplate
- Throws:
org.springframework.transaction.TransactionException
-
-