public interface JdbcTxManager
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Closes the connection and removes the connection from the thread local
|
void |
commit()
Commits the current connection
Requires that the existing connection was created with autocommit set to false.
|
Connection |
getConnection()
Gets the connection that is currently being used.
|
boolean |
isConnection()
Checks if the current connection is null.
|
boolean |
isTransaction()
Checks whether the current connection is not null and autocomit is set to false.
|
void |
newConnection(boolean autoCommit)
N.B.
|
void |
rollback()
Rollbacks the current connection
|
void |
setRollbackOnly()
Marks the transaction for rollback when completing.
|
void |
trace(String message) |
boolean isTransaction()
boolean isConnection()
void newConnection(boolean autoCommit)
autoCommit - automatically commits after each execute. Set to false to use transactions.void commit()
void rollback()
void cleanUp()
Connection getConnection()
void setRollbackOnly()
void trace(String message)
Copyright © 2021 NorStella. All rights reserved.