Class CountItemDeltaProcessor<T>
java.lang.Object
com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor<T>
com.evolveum.midpoint.repo.sqale.delta.item.FinalValueDeltaProcessor<T>
com.evolveum.midpoint.repo.sqale.delta.item.CountItemDeltaProcessor<T>
- Type Parameters:
T
- expected type of the real value, but we don't care in this class
- All Implemented Interfaces:
ItemDeltaProcessor
Delta processor for columns storing size of multi-value item.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
context
-
Constructor Summary
ConstructorDescriptionCountItemDeltaProcessor
(SqaleUpdateContext<?, Q, R> context, Function<Q, com.querydsl.core.types.dsl.NumberPath<Integer>> rootToQueryItem) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Resets the database columns or deletes sub-entities like refs, containers, etc.void
setRealValues
(Collection<?> values) Sets the provided real values in the database, implements REPLACE modification.Methods inherited from class com.evolveum.midpoint.repo.sqale.delta.item.FinalValueDeltaProcessor
process
Methods inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
addRealValues, addValues, convertRealValue, deleteRealValues, deleteValues
-
Constructor Details
-
CountItemDeltaProcessor
public CountItemDeltaProcessor(SqaleUpdateContext<?, Q, R> context, Function<Q, com.querydsl.core.types.dsl.NumberPath<Integer>> rootToQueryItem) - Type Parameters:
Q
- entity query type from which the attribute is resolvedR
- row type related toCountItemDeltaProcessor
-
-
Method Details
-
setRealValues
Description copied from class:ItemDeltaValueProcessor
Sets the provided real values in the database, implements REPLACE modification. This may involve setting the value of some columns or delete/insert of sub-entities. This is a general case covering both multi-value and single-value items.- Overrides:
setRealValues
in classItemDeltaValueProcessor<T>
-
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>
-