@Requires(classes=org.springframework.transaction.PlatformTransactionManager.class) @EachBean(value=org.springframework.transaction.PlatformTransactionManager.class) public class SpringTransactionHandler extends AbstractTransactionHandler
didTxnRollback
Constructor and Description |
---|
SpringTransactionHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)
Adapt a
PlatformTransactionManager to Jdbi transaction provider interface. |
Modifier and Type | Method and Description |
---|---|
void |
begin(org.jdbi.v3.core.Handle handle) |
void |
commit(org.jdbi.v3.core.Handle handle) |
boolean |
isInTransaction(org.jdbi.v3.core.Handle handle) |
void |
releaseSavepoint(org.jdbi.v3.core.Handle handle,
java.lang.String savepointName) |
void |
rollback(org.jdbi.v3.core.Handle handle) |
void |
rollbackToSavepoint(org.jdbi.v3.core.Handle handle,
java.lang.String savepointName) |
void |
savepoint(org.jdbi.v3.core.Handle handle,
java.lang.String savepointName) |
inTransaction, inTransaction
public SpringTransactionHandler(org.springframework.transaction.PlatformTransactionManager transactionManager)
PlatformTransactionManager
to Jdbi transaction provider interface.transactionManager
- The transaction managerpublic void begin(org.jdbi.v3.core.Handle handle)
public void commit(org.jdbi.v3.core.Handle handle)
public void rollback(org.jdbi.v3.core.Handle handle)
public boolean isInTransaction(org.jdbi.v3.core.Handle handle)
public void savepoint(org.jdbi.v3.core.Handle handle, java.lang.String savepointName)
public void rollbackToSavepoint(org.jdbi.v3.core.Handle handle, java.lang.String savepointName)
public void releaseSavepoint(org.jdbi.v3.core.Handle handle, java.lang.String savepointName)