public class CursoredDataSource<T> extends Object implements InternalDataSource<T>
DataSource.DataSourceFactory| Constructor and Description |
|---|
CursoredDataSource() |
CursoredDataSource(org.drools.core.common.InternalWorkingMemory workingMemory) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(RuleUnit unit,
org.drools.core.WorkingMemoryEntryPoint ep) |
void |
delete(org.kie.api.runtime.rule.FactHandle fh)
Deletes the fact for which the given FactHandle was assigned
|
void |
delete(Object obj)
Deletes the given object from this DataSource
|
org.kie.api.runtime.rule.FactHandle |
getFactHandleForObject(Object object) |
org.kie.api.runtime.rule.FactHandle |
insert(T object)
Inserts a new fact into this DataSource
|
Iterator<T> |
iterator() |
void |
setWorkingMemory(org.drools.core.common.InternalWorkingMemory workingMemory) |
void |
unbind(RuleUnit unit) |
void |
update(org.kie.api.runtime.rule.FactHandle fh,
Object obj,
org.drools.core.util.bitmask.BitMask mask,
Class<?> modifiedClass,
org.drools.core.spi.Activation activation) |
void |
update(org.kie.api.runtime.rule.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateforEach, spliteratorpublic CursoredDataSource()
public CursoredDataSource(org.drools.core.common.InternalWorkingMemory workingMemory)
public void setWorkingMemory(org.drools.core.common.InternalWorkingMemory workingMemory)
setWorkingMemory in interface InternalDataSource<T>public org.kie.api.runtime.rule.FactHandle getFactHandleForObject(Object object)
getFactHandleForObject in interface InternalDataSource<T>public org.kie.api.runtime.rule.FactHandle insert(T object)
DataSourceinsert in interface DataSource<T>object - the fact to be insertedpublic void update(org.kie.api.runtime.rule.FactHandle handle,
T object,
String... modifiedProperties)
DataSourceupdate in interface DataSource<T>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.public void update(org.kie.api.runtime.rule.FactHandle fh,
Object obj,
org.drools.core.util.bitmask.BitMask mask,
Class<?> modifiedClass,
org.drools.core.spi.Activation activation)
update in interface InternalDataSource<T>public void delete(org.kie.api.runtime.rule.FactHandle fh)
DataSourcedelete in interface DataSource<T>fh - the handle whose fact is to be retracted.public void delete(Object obj)
DataSourcedelete in interface DataSource<T>obj - the object to be deleted.public void bind(RuleUnit unit, org.drools.core.WorkingMemoryEntryPoint ep)
bind in interface BindableDataProviderpublic void unbind(RuleUnit unit)
unbind in interface BindableDataProviderCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.