Package com.jbstrap.core.interfaces
Interface Transaction
- All Known Implementing Classes:
BaseTransaction
,NoTransaction
,SQLTransaction
public interface Transaction
-
Method Details
-
getTransactionObject
Object getTransactionObject() -
commit
Commits the transaction towards the data store. Following this, no additional operation can be done in the transaction, and it cannot be rolled back.- Returns:
- The transaction instance
- Throws:
ConnectionException
- If any error is encountered during the commit. In every case, the error most be packaged in this type of error.
-
rollBack
Rolls back the current transaction. Following this, no additional operation can be done in the transaction, and it cannot be committed.- Returns:
- The transaction instance
- Throws:
ConnectionExceptionIf
- any error is encountered during the commit. In every case, the error most be packaged in this type of error.ConnectionException
-