1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.transport.jdbc; |
8 | |
|
9 | |
import org.mule.api.MuleContext; |
10 | |
import org.mule.api.transaction.Transaction; |
11 | |
import org.mule.api.transaction.TransactionException; |
12 | |
import org.mule.api.transaction.TransactionFactory; |
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | 0 | public class JdbcTransactionFactory implements TransactionFactory |
18 | |
{ |
19 | |
|
20 | |
public Transaction beginTransaction(MuleContext muleContext) throws TransactionException |
21 | |
{ |
22 | 0 | JdbcTransaction tx = new JdbcTransaction(muleContext); |
23 | 0 | tx.begin(); |
24 | 0 | return tx; |
25 | |
} |
26 | |
|
27 | |
public boolean isTransacted() |
28 | |
{ |
29 | 0 | return true; |
30 | |
} |
31 | |
|
32 | |
} |