public class ValueGroupDatasourceImpl extends GroupDatasourceImpl<KeyValueEntity,java.lang.Object> implements ValueDatasource
GroupDatasource that supports KeyValueEntity.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 |
|---|
ValueGroupDatasourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(KeyValueEntity item)
Add an item to the collection.
|
ValueGroupDatasourceImpl |
addProperty(java.lang.String name)
Adds a string property to the meta-class of this datasource.
|
ValueGroupDatasourceImpl |
addProperty(java.lang.String name,
java.lang.Class aClass)
Adds a property of the given Java class to the meta-class of this datasource.
|
ValueGroupDatasourceImpl |
addProperty(java.lang.String name,
Datatype datatype)
Adds a property of the given datatype to the meta-class of this datasource.
|
void |
includeItem(KeyValueEntity item)
Include an item into the collection.
|
ValueGroupDatasourceImpl |
setIdName(java.lang.String name)
Sets the name of a property that represents the entity id.
|
void |
setStoreName(java.lang.String storeName) |
void |
setup(DsContext dsContext,
DataSupplier dataSupplier,
java.lang.String id,
MetaClass metaClass,
View view)
Setup the datasource right after creation.
|
containsGroup, firstItemId, getChildItems, getChildren, getGroupItemIds, getGroupItemsCount, getGroupPath, getGroupProperties, getGroupProperty, getGroupPropertyValue, getOwnChildItems, getParentGroup, groupBy, hasChildren, hasGroups, lastItemId, nextItemId, prevItemId, rootGroups, setSuspendedaddItemFirst, aggregate, aggregateValues, clear, committed, containsItem, excludeItem, getCompiledLoadContext, getFirstResult, getIdByIndex, getItem, getItemIds, getItemIds, getItems, 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, 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, waitgetMetaClassaddCollectionChangeListener, clear, containsItem, excludeItem, getCompiledLoadContext, getItem, getItemIds, getItemNN, getItems, getLastRefreshParameters, getMaxResults, getQuery, getQueryFilter, getRefreshOnComponentValueChange, 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, setLoadDynamicAttributesgetCountclearCommitLists, deleted, enableListeners, getItemsToCreate, getItemsToDelete, getItemsToUpdate, getParent, modified, setCommitMode, setModified, setParentpublic void setup(DsContext dsContext, DataSupplier dataSupplier, java.lang.String id, MetaClass metaClass, @Nullable View view)
Datasourcesetup in interface Datasource<KeyValueEntity>setup in class DatasourceImpl<KeyValueEntity>dsContext - DsContext instancedataSupplier - DataSupplier instanceid - datasource IDmetaClass - MetaClass of an entity that will be stored in this datasourceview - a view that will be used to load entities form DB, can be nullpublic ValueGroupDatasourceImpl setIdName(java.lang.String name)
ValueDatasourcesetIdName in interface ValueDatasourcepublic ValueGroupDatasourceImpl addProperty(java.lang.String name)
ValueDatasourceaddProperty in interface ValueDatasourcepublic ValueGroupDatasourceImpl addProperty(java.lang.String name, java.lang.Class aClass)
ValueDatasourceaddProperty in interface ValueDatasourcepublic ValueGroupDatasourceImpl addProperty(java.lang.String name, Datatype datatype)
ValueDatasourceaddProperty in interface ValueDatasourcepublic void includeItem(KeyValueEntity item)
CollectionDatasourceincludeItem in interface CollectionDatasource<KeyValueEntity,java.lang.Object>includeItem in class CollectionDatasourceImpl<KeyValueEntity,java.lang.Object>public void addItem(KeyValueEntity item)
CollectionDatasourceaddItem in interface CollectionDatasource<KeyValueEntity,java.lang.Object>addItem in class CollectionDatasourceImpl<KeyValueEntity,java.lang.Object>public void setStoreName(java.lang.String storeName)