Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public abstract static class Transactions.Synchronization
- Object
- Transactions.Synchronization
Hooks run synchronously in registration order, once per physical
transaction (including a scope that never borrowed a connection).
Override only the hooks needed. Before-commit failures prevent commit;
after-commit failures are reported after all completion hooks run.
Completion failures are logged and do not replace the original failure.
Constructors
public Synchronization() |
Methods
public void beforeCommit(boolean readOnly) | |
public void afterCommit() | |
public void afterCompletion(Transactions.Outcome outcome) |
Inherited methods
Constructor details
Synchronization
public Synchronization()Method details
beforeCommit
public void beforeCommit(boolean readOnly)afterCommit
public void afterCommit()afterCompletion
public void afterCompletion(Transactions.Outcome outcome)