T
- type of entityK
- type of entity IDpublic interface HierarchicalDatasource<T extends Entity<K>,K> extends CollectionDatasource<T,K>
CollectionDatasource.Aggregatable<T extends Entity<K>,K>, CollectionDatasource.CollectionChangeEvent<T extends Entity<K>,K>, CollectionDatasource.CollectionChangeListener<T extends Entity<K>,K>, CollectionDatasource.Indexed<T extends Entity<K>,K>, CollectionDatasource.Lazy<T extends Entity<K>,K>, CollectionDatasource.Operation, CollectionDatasource.Ordered<T extends Entity<K>,K>, CollectionDatasource.RefreshMode, CollectionDatasource.Sortable<T extends Entity<K>,K>, CollectionDatasource.SupportsApplyToSelected<T extends Entity<K>,K>, CollectionDatasource.SupportsPaging<T extends Entity<K>,K>, CollectionDatasource.SupportsRefreshMode<T extends Entity<K>,K>, CollectionDatasource.Suspendable<T extends Entity<K>,K>
Datasource.CommitMode, Datasource.ItemChangeEvent<T extends Entity>, Datasource.ItemChangeListener<T extends Entity>, Datasource.ItemPropertyChangeEvent<T extends Entity>, Datasource.ItemPropertyChangeListener<T extends Entity>, Datasource.State, Datasource.StateChangeEvent<T extends Entity>, Datasource.StateChangeListener<T extends Entity>
Modifier and Type | Method and Description |
---|---|
java.util.Collection<K> |
getChildren(K itemId)
Get children IDs for item with the given ID
|
java.lang.String |
getHierarchyPropertyName()
Property of entity which forms the hierarchy
|
K |
getParent(K itemId)
Get parent ID for item with the given ID
|
java.util.Collection<K> |
getRootItemIds()
Identifiers of all root items
|
boolean |
hasChildren(K itemId)
True if item with the given ID has children
|
boolean |
isRoot(K itemId)
True if item with the given ID is a root item
|
void |
setHierarchyPropertyName(java.lang.String parentPropertyName)
Set property of entity which forms the hierarchy
|
addCollectionChangeListener, addItem, clear, containsItem, excludeItem, getCompiledLoadContext, getItem, getItemIds, getItemNN, getItems, getLastRefreshParameters, getMaxResults, getQuery, getQueryFilter, getRefreshOnComponentValueChange, includeItem, isCacheable, isSoftDeletion, modifyItem, refresh, removeCollectionChangeListener, removeItem, resumeListeners, revert, setCacheable, setMaxResults, setQuery, setQuery, setQueryFilter, setRefreshOnComponentValueChange, setSoftDeletion, size, suspendListeners, updateItem
addItemChangeListener, addItemPropertyChangeListener, addListener, addStateChangeListener, commit, getCommitMode, getDataSupplier, getDsContext, getId, getItem, getItemIfValid, getLoadDynamicAttributes, getMetaClass, getState, getView, invalidate, isAllowCommit, isModified, refresh, removeItemChangeListener, removeItemPropertyChangeListener, removeListener, removeStateChangeListener, setAllowCommit, setItem, setLoadDynamicAttributes, setup
java.lang.String getHierarchyPropertyName()
void setHierarchyPropertyName(java.lang.String parentPropertyName)
java.util.Collection<K> getRootItemIds()
java.util.Collection<K> getChildren(K itemId)
boolean isRoot(K itemId)
boolean hasChildren(K itemId)