public interface TransactionListener
Modifier and Type | Method | Description |
---|---|---|
boolean |
preCommit() |
Notifies registered listener that the transaction
is about to commit.
|
void |
preRollback() |
Notifies registered listener that the transaction
is about to rollback.
|
boolean preCommit() throws StandardException
StandardException
- If thrown the commit attempt
will be stopped and instead the transaction will be rolled back.void preRollback() throws StandardException
StandardException
- If thrown the rollback attempt
will be stopped and instead the database will be shut down.
TODO: Define behaviour on exception during rollback.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.