ITEM - Item type@FunctionalInterface public static interface ItemDataSource.CommitHandler<ITEM> extends Serializable
ItemDataSource.commit().| Modifier and Type | Method and Description |
|---|---|
void |
commit(Collection<ITEM> addedItems,
Collection<ITEM> modifiedItems,
Collection<ITEM> removedItems)
Commit item modifications.
|
static <T> ItemDataSource.CommitHandler<T> |
datastore(Class<? extends T> beanClass,
com.holonplatform.core.datastore.Datastore datastore,
com.holonplatform.core.datastore.DataTarget<?> target)
Construct a new
ItemDataSource.CommitHandler for bean type items using a Datastore to perform persistence
operations. |
static ItemDataSource.CommitHandler<com.holonplatform.core.property.PropertyBox> |
datastore(com.holonplatform.core.datastore.Datastore datastore,
com.holonplatform.core.datastore.DataTarget<?> target)
Construct a new
ItemDataSource.CommitHandler for PropertyBox type items using a Datastore to perform
persistence operations. |
void commit(Collection<ITEM> addedItems, Collection<ITEM> modifiedItems, Collection<ITEM> removedItems)
addedItems - Added items: an empty collection if nonemodifiedItems - Modified items: an empty collection if noneremovedItems - Removed items: an empty collection if nonestatic ItemDataSource.CommitHandler<com.holonplatform.core.property.PropertyBox> datastore(com.holonplatform.core.datastore.Datastore datastore, com.holonplatform.core.datastore.DataTarget<?> target)
ItemDataSource.CommitHandler for PropertyBox type items using a Datastore to perform
persistence operations.datastore - The datastore to use (not null)target - The data target to use (not null)ItemDataSource.CommitHandler instancestatic <T> ItemDataSource.CommitHandler<T> datastore(Class<? extends T> beanClass, com.holonplatform.core.datastore.Datastore datastore, com.holonplatform.core.datastore.DataTarget<?> target)
ItemDataSource.CommitHandler for bean type items using a Datastore to perform persistence
operations.T - Bean typebeanClass - Bean class (not null)datastore - The datastore to use (not null)target - The data target to use (not null)ItemDataSource.CommitHandler instanceCopyright © 2019 The Holon Platform. All rights reserved.