Class ExtensionContainerDeltaProcessor<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.ExtensionContainerDeltaProcessor<T>
-
- Type Parameters:
T- type of the processed container (target)
- All Implemented Interfaces:
ItemDeltaProcessor
public class ExtensionContainerDeltaProcessor<T extends Containerable> extends ItemDeltaSingleValueProcessor<T>
Delta processor for extension container stored as a single JSONB column.
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
context
-
-
Constructor Summary
Constructors Constructor Description ExtensionContainerDeltaProcessor(SqaleUpdateContext<OS,OQ,OR> context, @NotNull ExtensionMapping<OQ,OR> mapping, @NotNull Function<OQ,JsonbPath> rootToExtensionPath)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 voiddelete()Resets the database columns or deletes sub-entities like refs, containers, etc.voidsetValue(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
-
ExtensionContainerDeltaProcessor
public ExtensionContainerDeltaProcessor(SqaleUpdateContext<OS,OQ,OR> context, @NotNull @NotNull ExtensionMapping<OQ,OR> mapping, @NotNull @NotNull Function<OQ,JsonbPath> rootToExtensionPath)
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(@NotNull T value) throws SchemaExceptionSets the values for items in the PCV that are mapped to database columns and nulls the rest.- Specified by:
setValuein classItemDeltaSingleValueProcessor<T extends Containerable>- Throws:
SchemaException
-
delete
public void delete()
Description copied from class:ItemDeltaValueProcessorResets the database columns or deletes sub-entities like refs, containers, etc. This must be implemented to support clearing the columns of single-value embedded containers.- Specified by:
deletein classItemDeltaValueProcessor<T extends Containerable>
-
-