Class SinglePathItemDeltaProcessor<T,P extends com.querydsl.core.types.Path<T>>
- 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.SinglePathItemDeltaProcessor<T,P>
-
- Type Parameters:
T
- type of real value after optional conversion (ItemDeltaValueProcessor.convertRealValue(Object)
to match the column (attribute) type in the row bean (M-type)P
- type of the corresponding path in the Q-type
- All Implemented Interfaces:
ItemDeltaProcessor
- Direct Known Subclasses:
EnumItemDeltaProcessor
,QTaskMapping.FullResultDeltaProcessor
,TimestampItemDeltaProcessor
,UriItemDeltaProcessor
public class SinglePathItemDeltaProcessor<T,P extends com.querydsl.core.types.Path<T>> extends ItemDeltaSingleValueProcessor<T>
Processor for items represented by a single column (query path).
-
-
Field Summary
Fields Modifier and Type Field Description protected P
path
-
Fields inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
context
-
-
Constructor Summary
Constructors Constructor Description SinglePathItemDeltaProcessor(SqaleUpdateContext<?,Q,R> context, Function<Q,P> rootToQueryItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Resets the database columns or deletes sub-entities like refs, containers, etc.void
setValue(T value)
Sets the database columns to reflect the provided value (converted if necessary).-
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
-
SinglePathItemDeltaProcessor
public SinglePathItemDeltaProcessor(SqaleUpdateContext<?,Q,R> context, Function<Q,P> rootToQueryItem)
- Type Parameters:
Q
- entity query type from which the attribute is resolvedR
- row type related toSinglePathItemDeltaProcessor
-
-
Method Detail
-
setValue
public void setValue(T value)
Description copied from class:ItemDeltaSingleValueProcessor
Sets the database columns to reflect the provided value (converted if necessary).- Specified by:
setValue
in classItemDeltaSingleValueProcessor<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>
-
-