1 16 package com.ibatis.sqlmap.engine.transaction; 17 18 import javax.sql.DataSource ; 19 import java.sql.SQLException ; 20 import java.util.Properties ; 21 22 public interface TransactionConfig { 23 24 public DataSource getDataSource(); 25 26 public void setDataSource(DataSource ds); 27 28 public void initialize(Properties props) throws SQLException , TransactionException; 29 30 public Transaction newTransaction(int transactionIsolation) throws SQLException , TransactionException; 31 32 public int getMaximumConcurrentTransactions(); 33 34 public void setMaximumConcurrentTransactions(int maximumConcurrentTransactions); 35 36 } 37 | Popular Tags |