Class EmbeddedContainerDeltaProcessor<T extends Containerable>
java.lang.Object
com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor<T>
com.evolveum.midpoint.repo.sqale.delta.item.ItemDeltaSingleValueProcessor<T>
com.evolveum.midpoint.repo.sqale.delta.item.EmbeddedContainerDeltaProcessor<T>
- Type Parameters:
T
- type of the processed container (target)
- All Implemented Interfaces:
ItemDeltaProcessor
public class EmbeddedContainerDeltaProcessor<T extends Containerable>
extends ItemDeltaSingleValueProcessor<T>
Delta processor for whole embedded single-value containers.
While the single value is PCV and is complex, the
ItemDeltaSingleValueProcessor.process(com.evolveum.midpoint.prism.delta.ItemDelta<?, ?>)
high-level implementation still works, but the details are more complex and implemented here.-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
context
-
Constructor Summary
ConstructorDescriptionEmbeddedContainerDeltaProcessor
(SqaleUpdateContext<OS, OQ, OR> context, SqaleNestedMapping<T, OQ, OR> nestedMapping) Constructs the delta processor, here we care about type match for parameters, later we don't. -
Method Summary
Methods inherited from class com.evolveum.midpoint.repo.sqale.delta.item.ItemDeltaSingleValueProcessor
getAnyValue, process, setRealValues
Methods inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
addRealValues, addValues, convertRealValue, deleteRealValues, deleteValues
-
Constructor Details
-
EmbeddedContainerDeltaProcessor
public EmbeddedContainerDeltaProcessor(SqaleUpdateContext<OS, OQ, OR> context, SqaleNestedMapping<T, OQ, OR> nestedMapping) Constructs the delta processor, here we care about type match for parameters, later we don't.- Type Parameters:
OS
- schema type of the owner of the embedded containerOQ
- query type of the owner entityOR
- type of the owner row
-
-
Method Details
-
setValue
Sets the values for items in the PCV that are mapped to database columns and nulls the rest.- Specified by:
setValue
in classItemDeltaSingleValueProcessor<T extends Containerable>
- Throws:
SchemaException
-
delete
public void delete()Sets all columns for the embedded container to `null` using all the known mappers.- Specified by:
delete
in classItemDeltaValueProcessor<T extends Containerable>
-