public class GroupDatasourceImpl<T extends Entity<K>,K> extends CollectionDatasourceImpl<T,K> implements GroupDatasource<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>CollectionDatasource.Sortable.Order, CollectionDatasource.Sortable.SortInfo<P>| Constructor and Description |
|---|
GroupDatasourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsGroup(GroupInfo groupId)
Indicates that a group is contained in the groups tree
|
K |
firstItemId() |
java.util.List<Entity> |
getChildItems(GroupInfo groupId) |
java.util.List<GroupInfo> |
getChildren(GroupInfo groupId) |
java.util.Collection<K> |
getGroupItemIds(GroupInfo groupId) |
int |
getGroupItemsCount(GroupInfo groupId) |
java.util.List<GroupInfo> |
getGroupPath(Entity entity) |
java.util.Collection<?> |
getGroupProperties() |
java.lang.Object |
getGroupProperty(GroupInfo groupId) |
java.lang.Object |
getGroupPropertyValue(GroupInfo groupId) |
java.util.List<Entity> |
getOwnChildItems(GroupInfo groupId) |
GroupInfo |
getParentGroup(Entity entity) |
void |
groupBy(java.lang.Object[] properties)
Perform grouping by the list of properties
|
boolean |
hasChildren(GroupInfo groupId)
Indicates that group has nested groups
|
boolean |
hasGroups()
Indicated that a datasource has groups
|
K |
lastItemId() |
K |
nextItemId(K itemId) |
K |
prevItemId(K itemId) |
java.util.List<GroupInfo> |
rootGroups() |
void |
setSuspended(boolean suspended) |
addItem, addItemFirst, aggregate, clear, committed, containsItem, excludeItem, getCompiledLoadContext, getFirstResult, getIdByIndex, getItem, getItemIds, getItemIds, getItems, includeItem, includeItemFirst, indexOfId, isFirstId, isLastId, isSuspended, modifyItem, pinQuery, refresh, refresh, refreshIfNotSuspended, refreshIfNotSuspended, removeItem, resetSortOrder, revert, setFirstResult, size, sort, unpinAllQuery, unpinLastQuery, updateItemaddCollectionChangeListener, addListener, commit, getCount, getItemNN, getLastRefreshParameters, getMaxResults, getQuery, getQueryFilter, getRefreshMode, getRefreshOnComponentValueChange, isCacheable, isSoftDeletion, removeCollectionChangeListener, removeListener, resumeListeners, setCacheable, setItem, setMaxResults, setQuery, setQuery, setQueryFilter, setRefreshMode, setRefreshOnComponentValueChange, setSoftDeletion, suspendListenersgetDataSupplier, getDsContext, getItem, getItemIfValid, getMetaClass, getState, getView, initialized, invalidate, setDataSupplier, setDsContext, setMetaClass, setup, setView, setView, validaddItemChangeListener, addItemPropertyChangeListener, addStateChangeListener, clearCommitLists, deleted, enableListeners, getCommitMode, getId, getItemsToCreate, getItemsToDelete, getItemsToUpdate, getLoadDynamicAttributes, getParent, isAllowCommit, isModified, modified, removeItemChangeListener, removeItemPropertyChangeListener, removeStateChangeListener, setAllowCommit, setCommitMode, setLoadDynamicAttributes, setModified, setParent, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCollectionChangeListener, 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, updateItemaddItemChangeListener, 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, setupgetCountclearCommitLists, deleted, enableListeners, getItemsToCreate, getItemsToDelete, getItemsToUpdate, getParent, modified, setCommitMode, setModified, setParentpublic void groupBy(java.lang.Object[] properties)
GroupDatasourcepublic java.util.List<GroupInfo> rootGroups()
rootGroups in interface GroupDatasource<T extends Entity<K>,K>public boolean hasChildren(GroupInfo groupId)
GroupDatasourcehasChildren in interface GroupDatasource<T extends Entity<K>,K>public java.util.List<GroupInfo> getChildren(GroupInfo groupId)
getChildren in interface GroupDatasource<T extends Entity<K>,K>public java.util.List<Entity> getOwnChildItems(GroupInfo groupId)
getOwnChildItems in interface GroupDatasource<T extends Entity<K>,K>public java.util.List<Entity> getChildItems(GroupInfo groupId)
getChildItems in interface GroupDatasource<T extends Entity<K>,K>public GroupInfo getParentGroup(Entity entity)
getParentGroup in interface GroupDatasource<T extends Entity<K>,K>public java.util.List<GroupInfo> getGroupPath(Entity entity)
getGroupPath in interface GroupDatasource<T extends Entity<K>,K>public java.lang.Object getGroupProperty(GroupInfo groupId)
getGroupProperty in interface GroupDatasource<T extends Entity<K>,K>public java.lang.Object getGroupPropertyValue(GroupInfo groupId)
getGroupPropertyValue in interface GroupDatasource<T extends Entity<K>,K>public java.util.Collection<K> getGroupItemIds(GroupInfo groupId)
getGroupItemIds in interface GroupDatasource<T extends Entity<K>,K>public int getGroupItemsCount(GroupInfo groupId)
getGroupItemsCount in interface GroupDatasource<T extends Entity<K>,K>public boolean hasGroups()
GroupDatasourcepublic java.util.Collection<?> getGroupProperties()
getGroupProperties in interface GroupDatasource<T extends Entity<K>,K>public boolean containsGroup(GroupInfo groupId)
GroupDatasourcecontainsGroup in interface GroupDatasource<T extends Entity<K>,K>public K nextItemId(K itemId)
nextItemId in interface CollectionDatasource.Ordered<T extends Entity<K>,K>nextItemId in class CollectionDatasourceImpl<T extends Entity<K>,K>public K prevItemId(K itemId)
prevItemId in interface CollectionDatasource.Ordered<T extends Entity<K>,K>prevItemId in class CollectionDatasourceImpl<T extends Entity<K>,K>public K firstItemId()
firstItemId in interface CollectionDatasource.Ordered<T extends Entity<K>,K>firstItemId in class CollectionDatasourceImpl<T extends Entity<K>,K>public K lastItemId()
lastItemId in interface CollectionDatasource.Ordered<T extends Entity<K>,K>lastItemId in class CollectionDatasourceImpl<T extends Entity<K>,K>public void setSuspended(boolean suspended)
setSuspended in interface CollectionDatasource.Suspendable<T extends Entity<K>,K>setSuspended in class CollectionDatasourceImpl<T extends Entity<K>,K>