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 Details

    • TChangeLogHolder

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

    • addBeanChange

      public void addBeanChange(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.