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
Modifier and TypeFieldDescriptionprotected EntityStates
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(DescriptorProcessorContext context) Updates entity descriptor according to the processor's aim.void
process
(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:MappingProcessor
Updates mapping according to the processor's aim. Can be used to enable lazy fetch, add join expression, etc.- Specified by:
process
in interfaceMappingProcessor
- Parameters:
context
- Context data contains objects that cannot be injected.
-
process
Description copied from interface:DescriptorProcessor
Updates entity descriptor according to the processor's aim.- Specified by:
process
in interfaceDescriptorProcessor
- Parameters:
context
- Context data contains objects that cannot be injected.
-