Class RDBMSTransaction
java.lang.Object
com.kingsrook.qqq.backend.core.actions.QBackendTransaction
com.kingsrook.qqq.backend.module.rdbms.actions.RDBMSTransaction
- All Implemented Interfaces:
AutoCloseable
RDBMS implementation of backend transaction.
Stores a jdbc connection, which is set to autoCommit(false).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.kingsrook.qqq.backend.core.actions.QBackendTransaction
openFor
-
Constructor Details
-
RDBMSTransaction
- Throws:
SQLException
-
-
Method Details
-
getConnection
Getter for connection -
commit
Description copied from class:QBackendTransaction
Commit the transaction.- Overrides:
commit
in classQBackendTransaction
- Throws:
QException
-
rollback
Description copied from class:QBackendTransaction
Rollback the transaction.- Overrides:
rollback
in classQBackendTransaction
- Throws:
QException
-
close
public void close()Description copied from class:QBackendTransaction
Close any resources associated with the transaction. In theory, should only be called after a commit or rollback was done.- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classQBackendTransaction
-