01: /*
02: * Created on Oct 7, 2004
03: */
04: package uk.org.ponder.transaction;
05:
06: /**
07: * <code>NullTransaction</code> objects are returned by resources that
08: * do not provide any transaction support.
09: * @author Antranig Basman (antranig@caret.cam.ac.uk)
10: *
11: */
12: public class NullTransaction implements Transaction {
13: private NullTransaction() {
14: }
15:
16: public void commit() {
17: }
18:
19: public void rollback() {
20: }
21:
22: public static NullTransaction instance = new NullTransaction();
23: }
|