Package org.opennms.netmgt.dao.mock
Class MockTransactionManager
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.MockTransactionManager
-
- All Implemented Interfaces:
org.springframework.transaction.PlatformTransactionManager
public class MockTransactionManager extends Object implements org.springframework.transaction.PlatformTransactionManager
-
-
Constructor Summary
Constructors Constructor Description MockTransactionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(org.springframework.transaction.TransactionStatus status)
org.springframework.transaction.TransactionStatus
getTransaction(org.springframework.transaction.TransactionDefinition definition)
void
rollback(org.springframework.transaction.TransactionStatus status)
-
-
-
Method Detail
-
getTransaction
public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition definition) throws org.springframework.transaction.TransactionException
- Specified by:
getTransaction
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
commit
public void commit(org.springframework.transaction.TransactionStatus status) throws org.springframework.transaction.TransactionException
- Specified by:
commit
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
rollback
public void rollback(org.springframework.transaction.TransactionStatus status) throws org.springframework.transaction.TransactionException
- Specified by:
rollback
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
-