01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tctest.spring.bean;
05:
06: import org.springframework.transaction.PlatformTransactionManager;
07: import org.springframework.transaction.TransactionDefinition;
08: import org.springframework.transaction.TransactionException;
09: import org.springframework.transaction.TransactionStatus;
10: import org.springframework.transaction.support.SimpleTransactionStatus;
11:
12: public class SimpleTransactionManager implements
13: PlatformTransactionManager {
14:
15: public TransactionStatus getTransaction(
16: TransactionDefinition definition)
17: throws TransactionException {
18: return new SimpleTransactionStatus();
19: }
20:
21: public void commit(TransactionStatus status)
22: throws TransactionException {
23: // do nothing
24: }
25:
26: public void rollback(TransactionStatus status)
27: throws TransactionException {
28: // do nothing
29: }
30:
31: }
|