public class TransactionContext extends Object
| Constructor and Description |
|---|
TransactionContext(JDBCPersistenceAdapter persistenceAdapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
close() |
void |
commit() |
void |
executeBatch() |
PreparedStatement |
getAddMessageStatement() |
Connection |
getConnection() |
PreparedStatement |
getRemovedMessageStatement() |
PreparedStatement |
getUpdateLastAckStatement() |
void |
onCompletion(Runnable runnable) |
void |
rollback() |
void |
setAddMessageStatement(PreparedStatement addMessageStatement) |
void |
setRemovedMessageStatement(PreparedStatement removedMessageStatement) |
void |
setTransactionIsolation(int transactionIsolation) |
void |
setUpdateLastAckStatement(PreparedStatement ackMessageStatement) |
public TransactionContext(JDBCPersistenceAdapter persistenceAdapter) throws IOException
IOExceptionpublic Connection getConnection() throws IOException
IOExceptionpublic void executeBatch() throws SQLException
SQLExceptionpublic void close() throws IOException
IOExceptionpublic void begin() throws IOException
IOExceptionpublic void commit() throws IOException
IOExceptionpublic void rollback() throws IOException
IOExceptionpublic PreparedStatement getAddMessageStatement()
public void setAddMessageStatement(PreparedStatement addMessageStatement)
public PreparedStatement getUpdateLastAckStatement()
public void setUpdateLastAckStatement(PreparedStatement ackMessageStatement)
public PreparedStatement getRemovedMessageStatement()
public void setRemovedMessageStatement(PreparedStatement removedMessageStatement)
public void setTransactionIsolation(int transactionIsolation)
public void onCompletion(Runnable runnable)
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.