Package org.apache.activemq.store.jdbc
Class TransactionContext
java.lang.Object
org.apache.activemq.store.jdbc.TransactionContext
Helps keep track of the current transaction/JDBC connection.
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionContext(JDBCPersistenceAdapter persistenceAdapter, int networkTimeout, int queryTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voidclose()voidcommit()voidvoidonCompletion(Runnable runnable) voidrollback()voidsetAddMessageStatement(PreparedStatement addMessageStatement) voidsetRemovedMessageStatement(PreparedStatement removedMessageStatement) voidsetTransactionIsolation(int transactionIsolation) voidsetUpdateLastAckStatement(PreparedStatement ackMessageStatement)
-
Constructor Details
-
TransactionContext
public TransactionContext(JDBCPersistenceAdapter persistenceAdapter, int networkTimeout, int queryTimeout) throws IOException - Throws:
IOException
-
-
Method Details
-
getExclusiveConnection
- Throws:
IOException
-
getConnection
- Throws:
IOException
-
executeBatch
- Throws:
SQLException
-
close
- Throws:
IOException
-
begin
- Throws:
IOException
-
commit
- Throws:
IOException
-
rollback
- Throws:
IOException
-
getAddMessageStatement
-
setAddMessageStatement
-
getUpdateLastAckStatement
-
setUpdateLastAckStatement
-
getRemovedMessageStatement
-
setRemovedMessageStatement
-
setTransactionIsolation
public void setTransactionIsolation(int transactionIsolation) -
onCompletion
-