Class ArrayItemDeltaProcessor<V,E>
java.lang.Object
com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor<T>
com.evolveum.midpoint.repo.sqale.delta.item.FinalValueDeltaProcessor<E>
com.evolveum.midpoint.repo.sqale.delta.item.ArrayItemDeltaProcessor<V,E>
- Type Parameters:
V
- type of value in schemaE
- type of element in DB (can be the same as `V`)
- All Implemented Interfaces:
ItemDeltaProcessor
Delta processor for multi-value property represented by single array column.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
context
-
Constructor Summary
ConstructorDescriptionArrayItemDeltaProcessor
(SqaleUpdateContext<?, Q, R> context, Function<Q, com.querydsl.core.types.dsl.ArrayPath<E[], E>> rootToQueryItem, Class<E> elementType, @Nullable Function<V, E> conversionFunction) -
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
-
ArrayItemDeltaProcessor
public ArrayItemDeltaProcessor(SqaleUpdateContext<?, Q, R> context, Function<Q, com.querydsl.core.types.dsl.ArrayPath<E[], E>> rootToQueryItem, Class<E> elementType, @Nullable @Nullable Function<V, E> conversionFunction) - Type Parameters:
Q
- entity query type from which the attribute is resolvedR
- row type related toArrayItemDeltaProcessor
- Parameters:
elementType
- class ofArrayItemDeltaProcessor
necessary for array creationconversionFunction
- optional conversion function, can be null if no conversion is necessary
-
-
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<E>
-
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<E>
-