Interface HierarchicalEntityContainer<T>

All Superinterfaces:
AdvancedFilterable, Buffered, Container, Container.Filterable, Container.Hierarchical, Container.ItemSetChangeNotifier, Container.Ordered, Container.Sortable, EntityContainer<T>, Serializable
All Known Implementing Classes:
JPAContainer

public interface HierarchicalEntityContainer<T> extends EntityContainer<T>, Container.Hierarchical
This is a preliminary interface for adding hierarchical support to JPAContainer. It works if the entities can be nested by means of a parent property, e.g. like this:
 class MyNodeEntity {
   MyNodeEntity parent;
   ...
 }
 
Since:
1.0
Author:
Petter Holmström (Vaadin Ltd)
  • Method Details

    • setParentProperty

      void setParentProperty(String parentProperty)
      Sets the persistent property (may be nested) that contains the reference to the parent entity. The parent entity is expected to be of the same type as the child entity.
      Parameters:
      parentProperty - the name of the parent property.
    • getParentProperty

      String getParentProperty()
      Gets the name of the persistent property that contains the reference to the parent entity.
      Returns:
      the name of the parent property, or null if not specified.