Package io.jmix.data.impl
Class EntityAttributesEraserImpl
java.lang.Object
io.jmix.data.impl.EntityAttributesEraserImpl
- All Implemented Interfaces:
EntityAttributesEraser
@Component("data_EntityAttributesEraser")
public class EntityAttributesEraserImpl
extends Object
implements EntityAttributesEraser
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.data.impl.EntityAttributesEraser
EntityAttributesEraser.ReferencesCollector
-
Field Summary
Modifier and TypeFieldDescriptionprotected UnconstrainedDataManager
protected EntityStates
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollectErasingReferences
(Collection entityList, Predicate predicate) void
eraseReferences
(EntityAttributesEraser.ReferencesCollector referencesCollector) protected boolean
isPersistentEntityProperty
(MetaProperty metaProperty) void
restoreAttributes
(Object entity) protected void
restoreCollectionAttribute
(Object entity, MetaProperty metaProperty, Collection ids) protected void
restoreSingleAttribute
(Object entity, MetaProperty metaProperty, Collection<Object> ids) protected void
traverseEntities
(Object entity, Set<Object> visited, EntityAttributesEraserImpl.Visitor visitor)
-
Field Details
-
metadata
-
dataManager
-
entityStates
-
metadataTools
-
-
Constructor Details
-
EntityAttributesEraserImpl
public EntityAttributesEraserImpl()
-
-
Method Details
-
collectErasingReferences
public EntityAttributesEraser.ReferencesCollector collectErasingReferences(Collection entityList, Predicate predicate) - Specified by:
collectErasingReferences
in interfaceEntityAttributesEraser
-
eraseReferences
- Specified by:
eraseReferences
in interfaceEntityAttributesEraser
-
restoreAttributes
- Specified by:
restoreAttributes
in interfaceEntityAttributesEraser
-
restoreCollectionAttribute
-
restoreSingleAttribute
protected void restoreSingleAttribute(Object entity, MetaProperty metaProperty, Collection<Object> ids) -
traverseEntities
protected void traverseEntities(Object entity, Set<Object> visited, EntityAttributesEraserImpl.Visitor visitor) -
isPersistentEntityProperty
-