01: package net.sourceforge.jaxor.db;
02:
03: import net.sourceforge.jaxor.api.ConnectionFactory;
04: import net.sourceforge.jaxor.api.JaxorTransaction;
05:
06: import java.sql.Connection;
07:
08: /*
09: * User: Mike
10: * Date: Jul 16, 2003
11: * Time: 5:16:36 PM
12: */
13:
14: public class ConnectionFactoryTransaction implements JaxorTransaction {
15:
16: private final ConnectionFactory _factory;
17:
18: public ConnectionFactoryTransaction(ConnectionFactory factory) {
19: _factory = factory;
20: }
21:
22: public Connection getConnection() {
23: return _factory.getConnection();
24: }
25:
26: public void commit() {
27: }
28:
29: public void end() {
30: }
31:
32: public void rollback(Exception e) {
33: }
34: }
|