Package io.jmix.eclipselink.impl.mapping
Class SoftDeleteProcessor
java.lang.Object
io.jmix.eclipselink.impl.mapping.SoftDeleteProcessor
- All Implemented Interfaces:
DescriptorProcessor,MappingProcessor
@Component("eclipselink_SoftDeleteProcessor")
public class SoftDeleteProcessor
extends Object
implements MappingProcessor, DescriptorProcessor
Modifies mapping to support soft delete feature. Updates softDeletionForBatch and
softDeletionForValueHolder properties using corresponding setters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EntityStatesprotected Metadataprotected MetadataTools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(DescriptorProcessorContext context) Updates entity descriptor according to the processor's aim.voidprocess(MappingProcessorContext context) Updates mapping according to the processor's aim.
-
Field Details
-
metadata
-
metadataTools
-
entityStates
-
-
Constructor Details
-
SoftDeleteProcessor
public SoftDeleteProcessor()
-
-
Method Details
-
process
Description copied from interface:MappingProcessorUpdates mapping according to the processor's aim. Can be used to enable lazy fetch, add join expression, etc.- Specified by:
processin interfaceMappingProcessor- Parameters:
context- Context data contains objects that cannot be injected.
-
process
Description copied from interface:DescriptorProcessorUpdates entity descriptor according to the processor's aim.- Specified by:
processin interfaceDescriptorProcessor- Parameters:
context- Context data contains objects that cannot be injected.
-