Package com.kenshoo.pl.entity.internal
Class ChangesContainer
- java.lang.Object
-
- com.kenshoo.pl.entity.internal.ChangesContainer
-
public class ChangesContainer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChangesContainer(CreateRecordCommand.OnDuplicateKey onDuplicateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(CommandsExecutor commandsExecutor, PersistentLayerStats stats)AbstractRecordCommandgetDelete(DataTable table, EntityChange entityChange, java.util.function.Supplier<DeleteRecordCommand> commandCreator)java.util.Optional<CreateRecordCommand>getInsert(DataTable table, EntityChange entityChange)AbstractRecordCommandgetInsert(DataTable table, EntityChange entityChange, java.util.function.Supplier<CreateRecordCommand> commandCreator)AbstractRecordCommandgetInsertOnDuplicateUpdate(DataTable table, EntityChange entityChange, java.util.function.Supplier<CreateRecordCommand> commandCreator)AbstractRecordCommandgetUpdate(DataTable table, EntityChange entityChange, java.util.function.Supplier<UpdateRecordCommand> commandCreator)
-
-
-
Constructor Detail
-
ChangesContainer
public ChangesContainer(CreateRecordCommand.OnDuplicateKey onDuplicateKey)
-
-
Method Detail
-
getDelete
public AbstractRecordCommand getDelete(DataTable table, EntityChange entityChange, java.util.function.Supplier<DeleteRecordCommand> commandCreator)
-
getUpdate
public AbstractRecordCommand getUpdate(DataTable table, EntityChange entityChange, java.util.function.Supplier<UpdateRecordCommand> commandCreator)
-
getInsert
public AbstractRecordCommand getInsert(DataTable table, EntityChange entityChange, java.util.function.Supplier<CreateRecordCommand> commandCreator)
-
getInsert
public java.util.Optional<CreateRecordCommand> getInsert(DataTable table, EntityChange entityChange)
-
getInsertOnDuplicateUpdate
public AbstractRecordCommand getInsertOnDuplicateUpdate(DataTable table, EntityChange entityChange, java.util.function.Supplier<CreateRecordCommand> commandCreator)
-
commit
public void commit(CommandsExecutor commandsExecutor, PersistentLayerStats stats)
-
-