ITEM - Item typePROPERTY - Item property typepublic static interface ItemDataSource.Configuration<ITEM,PROPERTY> extends 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.
|
Optional<PROPERTY> |
getPropertyById(String propertyId)
Get the property which corresponds to given id, if available.
|
Object |
getPropertyDefaultValue(PROPERTY property)
Get the default value for the given property.
|
Optional<String> |
getPropertyId(PROPERTY property)
Get the String id associated to given property, if available.
|
Optional<ItemDataSource.PropertySortGenerator<PROPERTY>> |
getPropertySortGenerator(PROPERTY property)
Get the
ItemDataSource.PropertySortGenerator bound to given property, if any. |
Class<?> |
getPropertyType()
Get the property representation type.
|
Class<?> |
getPropertyType(PROPERTY property)
Gets the data type of the given data source property.
|
Optional<com.holonplatform.core.query.QueryFilter> |
getQueryFilter()
Get the
QueryFilter according to this configuration, taking into account the fixed filters and the
query filters from any registered QueryConfigurationProvider. |
com.holonplatform.core.ParameterSet |
getQueryParameters()
Get the query parameters according to this configuration, taking into account the query parameters from any
registered
QueryConfigurationProvider. |
Optional<com.holonplatform.core.query.QuerySort> |
getQuerySort(Collection<com.holonplatform.core.query.QuerySort> currentSorts)
Get the
QuerySort according to this configuration, taking into account the item sorts, default and
fixed sorts and the query sorts from any registered QueryConfigurationProvider. |
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.
|
Class<?> getPropertyType()
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)Optional<String> getPropertyId(PROPERTY property)
property - Property (not null)Optional<PROPERTY> getPropertyById(String propertyId)
propertyId - Property idboolean 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 otherwiseOptional<ItemDataSource.PropertySortGenerator<PROPERTY>> getPropertySortGenerator(PROPERTY property)
ItemDataSource.PropertySortGenerator bound to given property, if any.property - Property (not null)Object 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()
Optional<com.holonplatform.core.query.QuerySort> getQuerySort(Collection<com.holonplatform.core.query.QuerySort> currentSorts)
QuerySort according to this configuration, taking into account the item sorts, default and
fixed sorts and the query sorts from any registered QueryConfigurationProvider.currentSorts - Optional corrent query sortsQuerySort, if availableOptional<com.holonplatform.core.query.QueryFilter> getQueryFilter()
QueryFilter according to this configuration, taking into account the fixed filters and the
query filters from any registered QueryConfigurationProvider.QueryFilter, if availablecom.holonplatform.core.ParameterSet getQueryParameters()
QueryConfigurationProvider.Copyright © 2019 The Holon Platform. All rights reserved.