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, theItemDeltaSingleValueProcessor.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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Sets all columns for the embedded container to `null` using all the known mappers.void
setValue(T value)
Sets the values for items in the PCV that are mapped to database columns and nulls the rest.-
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 Detail
-
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 Detail
-
setValue
public void setValue(T value) throws SchemaException
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>
-
-