1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.dbcp2.transaction;
19
20 import javax.transaction.HeuristicMixedException;
21 import javax.transaction.HeuristicRollbackException;
22 import javax.transaction.RollbackException;
23 import javax.transaction.Synchronization;
24 import javax.transaction.SystemException;
25 import javax.transaction.Transaction;
26 import javax.transaction.xa.XAResource;
27
28
29
30
31 public class TransactionAdapter implements Transaction {
32
33 @Override
34 public void commit() throws HeuristicMixedException, HeuristicRollbackException, RollbackException,
35 SecurityException, SystemException {
36
37 }
38
39 @Override
40 public boolean delistResource(final XAResource arg0, final int arg1) throws IllegalStateException, SystemException {
41 return false;
42 }
43
44 @Override
45 public boolean enlistResource(final XAResource arg0) throws IllegalStateException, RollbackException, SystemException {
46 return false;
47 }
48
49 @Override
50 public int getStatus() throws SystemException {
51 return 0;
52 }
53
54 @Override
55 public void registerSynchronization(final Synchronization arg0)
56 throws IllegalStateException, RollbackException, SystemException {
57
58 }
59
60 @Override
61 public void rollback() throws IllegalStateException, SystemException {
62
63 }
64
65 @Override
66 public void setRollbackOnly() throws IllegalStateException, SystemException {
67
68 }
69
70 }