Modifier and Type | Interface and Description |
---|---|
static class |
DataSource.DataSourceFactory |
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
|
void |
delete(Object object)
Deletes the given object from this DataSource
|
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, spliterator
FactHandle 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.void delete(Object object)
object
- the object to be deleted.static <T> DataSource<T> create(T... items)
items
- the items contained in the DataSource.Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.