public interface TransactionalDatabase
Operations corresponding to interface methods are executed within a single database transaction. The general idea is making this interface behave like a java.sql.Connection in regard to transactions, by mapping its commit() and rollback() methods to the same methods of the underlying java.sql.Connection.
The implementation of the interface ignores begin() method invocation and invalidate the instance after commit() or rollback() methods execution.
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Method invocation commits to the database all data operations
executed over this interface's underlying connection.
|
void |
rollback()
Method invocation rolls back to the database all data operations
executed over this interface's underlying connection.
|
void commit()
throws DatabaseException
DatabaseExceptionvoid rollback()
throws DatabaseException
DatabaseExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.