Package com.kenshoo.pl.entity
Class InsertOnDuplicateUpdateCommand<E extends EntityType<E>,ID extends Identifier<E>>
- java.lang.Object
-
- com.kenshoo.pl.entity.ChangeEntityCommand<E>
-
- com.kenshoo.pl.entity.UpdateEntityCommand<E,ID>
-
- com.kenshoo.pl.entity.InsertOnDuplicateUpdateCommand<E,ID>
-
- All Implemented Interfaces:
EntityChange<E>,FieldsValueMap<E>,MutableCommand<E>
public class InsertOnDuplicateUpdateCommand<E extends EntityType<E>,ID extends Identifier<E>> extends UpdateEntityCommand<E,ID>
-
-
Constructor Summary
Constructors Constructor Description InsertOnDuplicateUpdateCommand(E entityType, ID key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowMissingEntity()ChangeOperationgetChangeOperation()voidupdateOperator(ChangeOperation changeOperation)-
Methods inherited from class com.kenshoo.pl.entity.UpdateEntityCommand
getIdentifier
-
Methods inherited from class com.kenshoo.pl.entity.ChangeEntityCommand
add, addChild, containsField, get, getChangedFields, getChanges, getChildren, getChildren, getEntityType, getKeysToParent, getParent, isFieldChanged, set, set, set, set, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.kenshoo.pl.entity.FieldsValueMap
safeGet
-
-
-
-
Method Detail
-
getChangeOperation
public ChangeOperation getChangeOperation()
- Specified by:
getChangeOperationin interfaceEntityChange<E extends EntityType<E>>- Overrides:
getChangeOperationin classUpdateEntityCommand<E extends EntityType<E>,ID extends Identifier<E>>- Returns:
- return change operation
-
allowMissingEntity
public boolean allowMissingEntity()
- Returns:
- return if entity must be found for entity change
-
updateOperator
public void updateOperator(ChangeOperation changeOperation)
- Overrides:
updateOperatorin classChangeEntityCommand<E extends EntityType<E>>
-
-