java.lang.Object
io.ebeaninternal.server.transaction.TChangeLogHolder
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
ConstructorsConstructorDescriptionTChangeLogHolder(SpiTransaction owner, int batchSize) Construct with the owning transaction and batch size to use. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBeanChange(BeanChange change) Add a bean change to the change set.voidOn post commit send the changes we have collected.voidOn post rollback send the changes we have collected and leave it up to the listener to decide what to do.voidSend the changes held prior to transaction commit.
-
Constructor Details
-
TChangeLogHolder
Construct with the owning transaction and batch size to use.
-
-
Method Details
-
addBeanChange
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.
-