Class TChangeLogHolder

java.lang.Object
io.ebeaninternal.server.transaction.TChangeLogHolder

public final class TChangeLogHolder extends Object
Holder of the changes handling the case when we send the changes prior to commit or rollback as we hit the allowed 'batch size'.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TChangeLogHolder(SpiTransaction owner, int batchSize)
    Construct with the owning transaction and batch size to use.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addBeanChange(io.ebean.event.changelog.BeanChange change)
    Add a bean change to the change set.
    void
    On post commit send the changes we have collected.
    void
    On post rollback send the changes we have collected and leave it up to the listener to decide what to do.
    void
    Send the changes held prior to transaction commit.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TChangeLogHolder

      public TChangeLogHolder(SpiTransaction owner, int batchSize)
      Construct with the owning transaction and batch size to use.
  • Method Details

    • addBeanChange

      public void addBeanChange(io.ebean.event.changelog.BeanChange change)
      Add a bean change to the change set.
    • preCommit

      public void preCommit()
      Send the changes held prior to transaction commit.
    • postCommit

      public void postCommit()
      On post commit send the changes we have collected. This should be only the COMMITTED state and with all changes sent prior to commit.
    • postRollback

      public void postRollback()
      On post rollback send the changes we have collected and leave it up to the listener to decide what to do.