Class Transactions.Synchronization

java.lang.Object
com.codename1.backend.Transactions.Synchronization
Enclosing class:
Transactions

public abstract static class Transactions.Synchronization extends Object
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.
  • Constructor Details

    • Synchronization

      public Synchronization()
  • Method Details

    • beforeCommit

      public void beforeCommit(boolean readOnly)
    • afterCommit

      public void afterCommit()
    • afterCompletion

      public void afterCompletion(Transactions.Outcome outcome)