| Modifier and Type | Method and Description |
|---|---|
static <T> DataSource<T> |
create(T... items)
Creates a DataSource, optionally containing some items
|
void |
delete(FactHandle handle)
Deletes the fact for which the given FactHandle was assigned
|
FactHandle |
insert(T object)
Inserts a new fact into this DataSource
|
void |
update(FactHandle handle,
T object,
String... modifiedProperties)
Updates the fact for which the given FactHandle was assigned with the new
fact set as the second parameter in this method.
|
forEach, iterator, spliteratorFactHandle insert(T object)
object - the fact to be insertedvoid update(FactHandle handle, T object, String... modifiedProperties)
handle - the FactHandle for the fact to be updated.object - the new value for the fact being updated.modifiedProperties - the list of the names of the object's properties modified by this update.void delete(FactHandle handle)
handle - the handle whose fact is to be retracted.static <T> DataSource<T> create(T... items)
items - the items contained in the DataSource.Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.