ITEM - Data item typeC - Concrete configurator typepublic interface HasDatastoreDataProviderConfigurator<ITEM,D extends DatastoreDataProviderConfigurator<ITEM,D>,C extends HasDatastoreDataProviderConfigurator<ITEM,D,C>> extends HasDataProviderConfigurator<ITEM,C>
HasDataProviderConfigurator with Datastore configuration support.| Modifier and Type | Method and Description |
|---|---|
D |
dataSource(com.holonplatform.core.datastore.Datastore datastore,
com.holonplatform.core.datastore.DataTarget<?> target,
Class<ITEM> beanType)
Set the data provider which acts as items data source, using given
Datastore as backend data handler and
given DataTarget as query target. |
<P extends com.holonplatform.core.property.Property> |
dataSource(com.holonplatform.core.datastore.Datastore datastore,
com.holonplatform.core.datastore.DataTarget<?> target,
Function<com.holonplatform.core.property.PropertyBox,ITEM> itemConverter,
Iterable<P> properties)
Set the data provider which acts as items data source, using given
Datastore as backend data handler,
given DataTarget as query target and given properties as query projection. |
default D |
dataSource(com.holonplatform.core.datastore.Datastore datastore,
com.holonplatform.core.datastore.DataTarget<?> target,
Function<com.holonplatform.core.property.PropertyBox,ITEM> itemConverter,
com.holonplatform.core.property.Property<?>... properties)
Set the data provider which acts as items data source, using given
Datastore as backend data handler,
given DataTarget as query target and given properties as query projection. |
addItem, dataSource, items, items<P extends com.holonplatform.core.property.Property> D dataSource(com.holonplatform.core.datastore.Datastore datastore, com.holonplatform.core.datastore.DataTarget<?> target, Function<com.holonplatform.core.property.PropertyBox,ITEM> itemConverter, Iterable<P> properties)
Datastore as backend data handler,
given DataTarget as query target and given properties as query projection. An
itemConverter function is used to convert the Datastore PropertyBox data type into the
required item type.P - Property typedatastore - The Datastore to use (not null)target - The DataTarget to use as query target (not null)itemConverter - The function to use to convert the Datastore PropertyBox data type into the required
item typeproperties - The property set to use as query projection (not null)QueryFilter and QuerySort.DatastoreDataProviderConfiguratordefault D dataSource(com.holonplatform.core.datastore.Datastore datastore, com.holonplatform.core.datastore.DataTarget<?> target, Function<com.holonplatform.core.property.PropertyBox,ITEM> itemConverter, com.holonplatform.core.property.Property<?>... properties)
Datastore as backend data handler,
given DataTarget as query target and given properties as query projection. An
itemConverter function is used to convert the Datastore PropertyBox data type into the
required item type.datastore - The Datastore to use (not null)target - The DataTarget to use as query target (not null)itemConverter - The function to use to convert the Datastore PropertyBox data type into the required
item typeproperties - The property set to use as query projection (not null)QueryFilter and QuerySort.DatastoreDataProviderConfiguratorD dataSource(com.holonplatform.core.datastore.Datastore datastore, com.holonplatform.core.datastore.DataTarget<?> target, Class<ITEM> beanType)
Datastore as backend data handler and
given DataTarget as query target. The Datastore PropertyBox type items will be converted into the
required beanType.datastore - The Datastore to use (not null)target - The DataTarget to use as query target (not null)beanType - The item bean type, must be compliant with the JavaBeans specificationsQueryFilter and QuerySort.DatastoreDataProviderConfiguratorCopyright © 2019 The Holon Platform. All rights reserved.