Class RefTableItemDeltaProcessor<Q extends QReference<?,OR>,OQ extends FlexibleRelationalPathBase<OR>,OR>
java.lang.Object
com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor<ObjectReferenceType>
com.evolveum.midpoint.repo.sqale.delta.item.RefTableItemDeltaProcessor<Q,OQ,OR>
- Type Parameters:
Q
- type of entity path for the reference tableOQ
- query type of the reference ownerOR
- row type of the reference owner (related toRefTableItemDeltaProcessor
)
- All Implemented Interfaces:
ItemDeltaProcessor
- Direct Known Subclasses:
ShadowRefAttributeItemDeltaProcessor
public class RefTableItemDeltaProcessor<Q extends QReference<?,OR>,OQ extends FlexibleRelationalPathBase<OR>,OR>
extends ItemDeltaValueProcessor<ObjectReferenceType>
Delta value processor for multi-value references stored in separate tables.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRefTableItemDeltaProcessor
(SqaleUpdateContext<?, OQ, OR> context, QReferenceMapping<Q, ?, OQ, OR> refTableMapping) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addValues
(Collection<ObjectReferenceType> values) @Nullable ObjectReferenceType
convertRealValue
(Object realValue) Default conversion for one value is a mere type cast, override as necessary.void
delete()
Resets the database columns or deletes sub-entities like refs, containers, etc.protected void
void
deleteValues
(Collection<ObjectReferenceType> values) Methods inherited from class com.evolveum.midpoint.repo.sqale.delta.ItemDeltaValueProcessor
addRealValues, deleteRealValues, modifyRealValue, process, setRealValues, useRealDeltaApplyResults
-
Field Details
-
context
-
-
Constructor Details
-
RefTableItemDeltaProcessor
public RefTableItemDeltaProcessor(SqaleUpdateContext<?, OQ, OR> context, QReferenceMapping<Q, ?, OQ, OR> refTableMapping)
-
-
Method Details
-
addValues
- Overrides:
addValues
in classItemDeltaValueProcessor<ObjectReferenceType>
- Throws:
SchemaException
-
addRealValue
- Overrides:
addRealValue
in classItemDeltaValueProcessor<ObjectReferenceType>
- Throws:
SchemaException
-
deleteValues
- Overrides:
deleteValues
in classItemDeltaValueProcessor<ObjectReferenceType>
-
deleteRealValue
- Overrides:
deleteRealValue
in classItemDeltaValueProcessor<ObjectReferenceType>
-
convertRealValue
Description copied from class:ItemDeltaValueProcessor
Default conversion for one value is a mere type cast, override as necessary.- Overrides:
convertRealValue
in classItemDeltaValueProcessor<ObjectReferenceType>
-
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<ObjectReferenceType>
-