Class ContainerTableDeltaProcessor<T extends Containerable,Q extends QContainer<R,OR>,R extends MContainer,OQ extends FlexibleRelationalPathBase<OR>,OR>
java.lang.Object
com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor<T>
com.evolveum.midpoint.repo.sqale.delta.item.ContainerTableDeltaProcessor<T,Q,R,OQ,OR>
- Type Parameters:
T
- schema type for containerQ
- query type for container tableR
- row type for container table, related toContainerTableDeltaProcessor
OQ
- query type of the table owning this containerOR
- row type of the table owning this container, related toContainerTableDeltaProcessor
- All Implemented Interfaces:
ItemDeltaProcessor
public class ContainerTableDeltaProcessor<T extends Containerable,Q extends QContainer<R,OR>,R extends MContainer,OQ extends FlexibleRelationalPathBase<OR>,OR>
extends ItemDeltaValueProcessor<T>
Delta value processor for multi-value containers stored in separate tables.
-
Constructor Summary
ConstructorDescriptionContainerTableDeltaProcessor
(@NotNull SqaleUpdateContext<?, OQ, OR> context, @NotNull QContainerMapping<T, Q, R, OR> containerTableMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRealValue
(T container) void
addValues
(Collection<T> values) void
delete()
Resets the database columns or deletes sub-entities like refs, containers, etc.protected void
deleteRealValue
(T realValue) void
deleteValues
(Collection<T> values) protected QContainerMapping<T,
Q, R, OR> protected SqaleUpdateContext<?,
OQ, OR> protected boolean
Methods inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
addRealValues, convertRealValue, deleteRealValues, modifyRealValue, process, setRealValues
-
Constructor Details
-
ContainerTableDeltaProcessor
public ContainerTableDeltaProcessor(@NotNull @NotNull SqaleUpdateContext<?, OQ, OR> context, @NotNull @NotNull QContainerMapping<T, Q, R, OR> containerTableMapping)
-
-
Method Details
-
addValues
- Overrides:
addValues
in classItemDeltaValueProcessor<T extends Containerable>
- Throws:
SchemaException
-
addRealValue
- Overrides:
addRealValue
in classItemDeltaValueProcessor<T extends Containerable>
- Throws:
SchemaException
-
deleteRealValue
- Overrides:
deleteRealValue
in classItemDeltaValueProcessor<T extends Containerable>
-
deleteValues
- Overrides:
deleteValues
in classItemDeltaValueProcessor<T extends Containerable>
-
delete
public void delete()Description copied from class:ItemDeltaValueProcessor
Resets 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:
delete
in classItemDeltaValueProcessor<T extends Containerable>
-
getContainerTableMapping
-
getContext
-
useRealDeltaApplyResults
protected boolean useRealDeltaApplyResults()- Overrides:
useRealDeltaApplyResults
in classItemDeltaValueProcessor<T extends Containerable>
-