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
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)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.featurepack.data.jpacontainer.AdvancedFilterable
AdvancedFilterable.FiltersAppliedEvent<C extends Container & AdvancedFilterable>Nested classes/interfaces inherited from interface com.vaadin.featurepack.data.Buffered
Buffered.SourceExceptionNested classes/interfaces inherited from interface com.vaadin.featurepack.data.Container
Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the persistent property that contains the reference to the parent entity.voidsetParentProperty(String parentProperty) Sets the persistent property (may be nested) that contains the reference to the parent entity.Methods inherited from interface com.vaadin.featurepack.data.jpacontainer.AdvancedFilterable
applyFilters, getAppliedFilters, getFilterablePropertyIds, getFilters, hasUnappliedFilters, isApplyFiltersImmediately, isFilterable, setApplyFiltersImmediatelyMethods inherited from interface com.vaadin.featurepack.data.Buffered
commit, discard, isBuffered, isModified, setBufferedMethods inherited from interface com.vaadin.featurepack.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItemIds, getType, removeAllItems, removeContainerProperty, sizeMethods inherited from interface com.vaadin.featurepack.data.Container.Filterable
addContainerFilter, getContainerFilters, removeAllContainerFilters, removeContainerFilterMethods inherited from interface com.vaadin.featurepack.data.Container.Hierarchical
areChildrenAllowed, getChildren, getParent, hasChildren, isRoot, removeItem, rootItemIds, setChildrenAllowed, setParentMethods inherited from interface com.vaadin.featurepack.data.Container.ItemSetChangeNotifier
addItemSetChangeListener, removeItemSetChangeListenerMethods inherited from interface com.vaadin.featurepack.data.Container.Ordered
addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemIdMethods inherited from interface com.vaadin.featurepack.data.Container.Sortable
getSortableContainerPropertyIds, sortMethods inherited from interface com.vaadin.featurepack.data.jpacontainer.EntityContainer
addContainerFilter, addEntity, addNestedContainerProperty, createEntityItem, getEntityClass, getEntityProvider, getItem, getPropertyKind, getQueryModifierDelegate, isAutoCommit, isReadOnly, refresh, refreshItem, removeContainerFilters, setAutoCommit, setEntityProvider, setReadOnly
-
Method Details
-
setParentProperty
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.
-