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, wait
create
forEach, spliterator
public 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)
DataSource
insert
in interface DataSource<T>
object
- the fact to be insertedpublic void update(org.kie.api.runtime.rule.FactHandle handle, T object, String... modifiedProperties)
DataSource
update
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)
DataSource
delete
in interface DataSource<T>
fh
- the handle whose fact is to be retracted.public void delete(Object obj)
DataSource
delete
in interface DataSource<T>
obj
- the object to be deleted.public void bind(RuleUnit unit, org.drools.core.WorkingMemoryEntryPoint ep)
bind
in interface BindableDataProvider
public void unbind(RuleUnit unit)
unbind
in interface BindableDataProvider
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.