public static interface ItemDataSource.Configuration<ITEM,PROPERTY> extends com.holonplatform.core.query.QueryConfigurationProvider, Serializable
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemDataSource.CommitHandler<ITEM>> |
getCommitHandler()
Get the commit handler
|
Optional<ItemDataProvider<ITEM>> |
getDataProvider()
Get the item data provider.
|
Optional<ItemIdentifierProvider<ITEM,?>> |
getItemIdentifierProvider()
Get the
ItemIdentifierProvider. |
List<ItemDataSource.ItemSort<PROPERTY>> |
getItemSorts()
Get current data source items sorting directives properties, providing item property to sort and direction.
|
Iterable<PROPERTY> |
getProperties()
Get available item properties.
|
Object |
getPropertyDefaultValue(PROPERTY property)
Get the default value for the given property.
|
Class<?> |
getPropertyType(PROPERTY property)
Gets the data type of the given data source property.
|
boolean |
isAutoRefresh()
Returns whether auto-refresh is enabled for this data source, i.e. items are loaded when one of the data
source methods which involve operations on item set is called.
|
boolean |
isPropertyReadOnly(PROPERTY property)
Get whether the given property is read only.
|
boolean |
isPropertySortable(PROPERTY property)
Get whether the given property is sortable.
|
Optional<ItemIdentifierProvider<ITEM,?>> getItemIdentifierProvider()
ItemIdentifierProvider.Optional<ItemDataProvider<ITEM>> getDataProvider()
Optional<ItemDataSource.CommitHandler<ITEM>> getCommitHandler()
Iterable<PROPERTY> getProperties()
Class<?> getPropertyType(PROPERTY property)
property - Property (not null)boolean isPropertyReadOnly(PROPERTY property)
property - Property (not null)true if property is read only, false otherwiseboolean isPropertySortable(PROPERTY property)
property - Property (not null)true if property is sortable, false otherwiseObject getPropertyDefaultValue(PROPERTY property)
property - Property (not null)null if not availableboolean isAutoRefresh()
If auto-refresh is not enabled, ItemDataSource.refresh() method must be called to load items.
Default is true.
List<ItemDataSource.ItemSort<PROPERTY>> getItemSorts()
Copyright © 2017 The Holon Platform. All rights reserved.