Class ExternalTransactionConfig
java.lang.Object
com.ibatis.sqlmap.engine.transaction.BaseTransactionConfig
com.ibatis.sqlmap.engine.transaction.external.ExternalTransactionConfig
- All Implemented Interfaces:
TransactionConfig
The Class ExternalTransactionConfig.
-
Field Summary
Fields inherited from class com.ibatis.sqlmap.engine.transaction.BaseTransactionConfig
dataSource, forceCommit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if is default auto commit.booleanChecks if is sets the auto commit allowed.newTransaction(int transactionIsolation) New transaction.voidsetDefaultAutoCommit(boolean defaultAutoCommit) Sets the default auto commit.voidsetProperties(Properties props) Sets the properties.voidsetSetAutoCommitAllowed(boolean setAutoCommitAllowed) Sets the sets the auto commit allowed.Methods inherited from class com.ibatis.sqlmap.engine.transaction.BaseTransactionConfig
getDataSource, getMaximumConcurrentTransactions, initialize, isForceCommit, setDataSource, setForceCommit, setMaximumConcurrentTransactions
-
Constructor Details
-
ExternalTransactionConfig
public ExternalTransactionConfig()
-
-
Method Details
-
newTransaction
public Transaction newTransaction(int transactionIsolation) throws SQLException, TransactionException Description copied from interface:TransactionConfigNew transaction.- Parameters:
transactionIsolation- the transaction isolation- Returns:
- the transaction
- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
isDefaultAutoCommit
public boolean isDefaultAutoCommit()Checks if is default auto commit.- Returns:
- true, if is default auto commit
-
setDefaultAutoCommit
public void setDefaultAutoCommit(boolean defaultAutoCommit) Sets the default auto commit.- Parameters:
defaultAutoCommit- the new default auto commit
-
isSetAutoCommitAllowed
public boolean isSetAutoCommitAllowed()Checks if is sets the auto commit allowed.- Returns:
- true, if is sets the auto commit allowed
-
setSetAutoCommitAllowed
public void setSetAutoCommitAllowed(boolean setAutoCommitAllowed) Sets the sets the auto commit allowed.- Parameters:
setAutoCommitAllowed- the new sets the auto commit allowed
-
setProperties
Description copied from interface:TransactionConfigSets the properties.- Parameters:
props- the new properties- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-