Class CursoredDataSource<T>

    • Constructor Detail

      • CursoredDataSource

        public CursoredDataSource()
      • CursoredDataSource

        public CursoredDataSource​(org.drools.core.common.InternalWorkingMemory workingMemory)
    • Method Detail

      • setWorkingMemory

        public void setWorkingMemory​(org.drools.core.common.InternalWorkingMemory workingMemory)
        Specified by:
        setWorkingMemory in interface InternalDataSource<T>
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(T object)
        Description copied from interface: DataSource
        Inserts a new fact into this DataSource
        Specified by:
        insert in interface DataSource<T>
        Parameters:
        object - the fact to be inserted
        Returns:
        the fact handle created for the given fact
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle handle,
                           T object,
                           String... modifiedProperties)
        Description copied from interface: DataSource
        Updates the fact for which the given FactHandle was assigned with the new fact set as the second parameter in this method. It is also possible to optionally specify the set of properties that have been modified.
        Specified by:
        update in interface DataSource<T>
        Parameters:
        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.
      • 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)
        Specified by:
        update in interface InternalDataSource<T>
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle fh)
        Description copied from interface: DataSource
        Deletes the fact for which the given FactHandle was assigned
        Specified by:
        delete in interface DataSource<T>
        Parameters:
        fh - the handle whose fact is to be retracted.
      • delete

        public void delete​(Object obj)
        Description copied from interface: DataSource
        Deletes the given object from this DataSource
        Specified by:
        delete in interface DataSource<T>
        Parameters:
        obj - the object to be deleted.