Class TChangeLogHolder
- java.lang.Object
-
- io.ebeaninternal.server.transaction.TChangeLogHolder
-
public 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeanChange(BeanChange change)
Add a bean change to the change set.void
postCommit()
On post commit send the changes we have collected.void
postRollback()
On post rollback send the changes we have collected and leave it up to the listener to decide what to do.
-
-
-
Constructor Detail
-
TChangeLogHolder
public TChangeLogHolder(SpiTransaction owner, int batchSize)
Construct with the owning transaction and batch size to use.
-
-
Method Detail
-
addBeanChange
public void addBeanChange(BeanChange change)
Add a bean change to the change set.
-
postCommit
public void postCommit()
On post commit send the changes we have collected.
-
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.
-
-