Interface EntityAssociation
- All Superinterfaces:
EntityViewRegistry
,com.foreach.across.core.support.ReadableAttributes
- All Known Subinterfaces:
MutableEntityAssociation
- All Known Implementing Classes:
EntityAssociationImpl
public interface EntityAssociation
extends com.foreach.across.core.support.ReadableAttributes, EntityViewRegistry
Filtered view on an association between two
EntityConfiguration
s.- Author:
- Arne Vandamme
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
When the parent entity is requesting to be deleted, how should this association influence the delete process?static enum
Determines if this entity is managed as a sub-entity of the parent (embedded), or simply a linked entity. -
Method Summary
Methods inherited from interface com.foreach.across.modules.entity.registry.EntityViewRegistry
getViewFactory, getViewNames, hasView
Methods inherited from interface com.foreach.across.core.support.ReadableAttributes
attributeMap, attributeNames, getAttribute, getAttribute, getAttribute, hasAttribute, hasAttribute
-
Method Details
-
getName
String getName() -
getEntityType
Class<?> getEntityType() -
getAssociationType
EntityAssociation.Type getAssociationType()- Returns:
- type of association
-
isHidden
boolean isHidden()- Returns:
- True if the association should be hidden from administrative UI implementations.
-
getSourceEntityConfiguration
EntityConfiguration getSourceEntityConfiguration() -
getSourceProperty
EntityPropertyDescriptor getSourceProperty() -
getTargetEntityConfiguration
EntityConfiguration getTargetEntityConfiguration() -
getTargetProperty
EntityPropertyDescriptor getTargetProperty() -
getParentDeleteMode
EntityAssociation.ParentDeleteMode getParentDeleteMode()- Returns:
- behaviour in case the parent entity will be deleted but associated entities still exist
-