Class DataSourceFactHandle

  • All Implemented Interfaces:
    Serializable, Cloneable, org.drools.core.common.InternalFactHandle, org.kie.api.runtime.rule.FactHandle

    public class DataSourceFactHandle
    extends Object
    implements org.drools.core.common.InternalFactHandle
    See Also:
    Serialized Form
    • Method Detail

      • getId

        public long getId()
        Specified by:
        getId in interface org.drools.core.common.InternalFactHandle
      • getObject

        public Object getObject()
        Specified by:
        getObject in interface org.drools.core.common.InternalFactHandle
      • isNegated

        public boolean isNegated()
        Specified by:
        isNegated in interface org.drools.core.common.InternalFactHandle
      • setNegated

        public void setNegated​(boolean negated)
        Specified by:
        setNegated in interface org.drools.core.common.InternalFactHandle
      • getIdentityHashCode

        public int getIdentityHashCode()
        Specified by:
        getIdentityHashCode in interface org.drools.core.common.InternalFactHandle
      • getRecency

        public long getRecency()
        Specified by:
        getRecency in interface org.drools.core.common.InternalFactHandle
      • setRecency

        public void setRecency​(long recency)
        Specified by:
        setRecency in interface org.drools.core.common.InternalFactHandle
      • getObjectClassName

        public String getObjectClassName()
        Specified by:
        getObjectClassName in interface org.drools.core.common.InternalFactHandle
      • setObject

        public void setObject​(Object object)
        Specified by:
        setObject in interface org.drools.core.common.InternalFactHandle
      • setEqualityKey

        public void setEqualityKey​(org.drools.core.common.EqualityKey key)
        Specified by:
        setEqualityKey in interface org.drools.core.common.InternalFactHandle
      • getEqualityKey

        public org.drools.core.common.EqualityKey getEqualityKey()
        Specified by:
        getEqualityKey in interface org.drools.core.common.InternalFactHandle
      • invalidate

        public void invalidate()
        Specified by:
        invalidate in interface org.drools.core.common.InternalFactHandle
      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface org.drools.core.common.InternalFactHandle
      • getObjectHashCode

        public int getObjectHashCode()
        Specified by:
        getObjectHashCode in interface org.drools.core.common.InternalFactHandle
      • isDisconnected

        public boolean isDisconnected()
        Specified by:
        isDisconnected in interface org.drools.core.common.InternalFactHandle
      • isEvent

        public boolean isEvent()
        Specified by:
        isEvent in interface org.drools.core.common.InternalFactHandle
      • isTraitOrTraitable

        public boolean isTraitOrTraitable()
        Specified by:
        isTraitOrTraitable in interface org.drools.core.common.InternalFactHandle
      • isTraitable

        public boolean isTraitable()
        Specified by:
        isTraitable in interface org.drools.core.common.InternalFactHandle
      • isTraiting

        public boolean isTraiting()
        Specified by:
        isTraiting in interface org.drools.core.common.InternalFactHandle
      • getTraitType

        public org.drools.core.factmodel.traits.TraitTypeEnum getTraitType()
        Specified by:
        getTraitType in interface org.drools.core.common.InternalFactHandle
      • getFirstRightTuple

        public org.drools.core.reteoo.RightTuple getFirstRightTuple()
        Specified by:
        getFirstRightTuple in interface org.drools.core.common.InternalFactHandle
      • getFirstLeftTuple

        public org.drools.core.reteoo.LeftTuple getFirstLeftTuple()
        Specified by:
        getFirstLeftTuple in interface org.drools.core.common.InternalFactHandle
      • getEntryPointId

        public org.drools.core.rule.EntryPointId getEntryPointId()
        Specified by:
        getEntryPointId in interface org.drools.core.common.InternalFactHandle
      • getEntryPoint

        public org.drools.core.WorkingMemoryEntryPoint getEntryPoint​(org.drools.core.common.InternalWorkingMemory wm)
        Specified by:
        getEntryPoint in interface org.drools.core.common.InternalFactHandle
      • clone

        public org.drools.core.common.InternalFactHandle clone()
        Specified by:
        clone in interface org.drools.core.common.InternalFactHandle
        Overrides:
        clone in class Object
      • toExternalForm

        public String toExternalForm()
        Specified by:
        toExternalForm in interface org.kie.api.runtime.rule.FactHandle
        Specified by:
        toExternalForm in interface org.drools.core.common.InternalFactHandle
      • disconnect

        public void disconnect()
        Specified by:
        disconnect in interface org.drools.core.common.InternalFactHandle
      • addFirstLeftTuple

        public void addFirstLeftTuple​(org.drools.core.reteoo.LeftTuple leftTuple)
        Specified by:
        addFirstLeftTuple in interface org.drools.core.common.InternalFactHandle
      • addLastLeftTuple

        public void addLastLeftTuple​(org.drools.core.reteoo.LeftTuple leftTuple)
        Specified by:
        addLastLeftTuple in interface org.drools.core.common.InternalFactHandle
      • removeLeftTuple

        public void removeLeftTuple​(org.drools.core.reteoo.LeftTuple leftTuple)
        Specified by:
        removeLeftTuple in interface org.drools.core.common.InternalFactHandle
      • clearLeftTuples

        public void clearLeftTuples()
        Specified by:
        clearLeftTuples in interface org.drools.core.common.InternalFactHandle
      • clearRightTuples

        public void clearRightTuples()
        Specified by:
        clearRightTuples in interface org.drools.core.common.InternalFactHandle
      • addFirstRightTuple

        public void addFirstRightTuple​(org.drools.core.reteoo.RightTuple rightTuple)
        Specified by:
        addFirstRightTuple in interface org.drools.core.common.InternalFactHandle
      • addLastRightTuple

        public void addLastRightTuple​(org.drools.core.reteoo.RightTuple rightTuple)
        Specified by:
        addLastRightTuple in interface org.drools.core.common.InternalFactHandle
      • removeRightTuple

        public void removeRightTuple​(org.drools.core.reteoo.RightTuple rightTuple)
        Specified by:
        removeRightTuple in interface org.drools.core.common.InternalFactHandle
      • addTupleInPosition

        public void addTupleInPosition​(org.drools.core.spi.Tuple tuple)
        Specified by:
        addTupleInPosition in interface org.drools.core.common.InternalFactHandle
      • isExpired

        public boolean isExpired()
        Specified by:
        isExpired in interface org.drools.core.common.InternalFactHandle
      • isPendingRemoveFromStore

        public boolean isPendingRemoveFromStore()
        Specified by:
        isPendingRemoveFromStore in interface org.drools.core.common.InternalFactHandle
      • forEachRightTuple

        public void forEachRightTuple​(Consumer<org.drools.core.reteoo.RightTuple> rightTupleConsumer)
        Specified by:
        forEachRightTuple in interface org.drools.core.common.InternalFactHandle
      • forEachLeftTuple

        public void forEachLeftTuple​(Consumer<org.drools.core.reteoo.LeftTuple> leftTupleConsumer)
        Specified by:
        forEachLeftTuple in interface org.drools.core.common.InternalFactHandle
      • findFirstRightTuple

        public org.drools.core.reteoo.RightTuple findFirstRightTuple​(Predicate<org.drools.core.reteoo.RightTuple> rightTuplePredicate)
        Specified by:
        findFirstRightTuple in interface org.drools.core.common.InternalFactHandle
      • findFirstLeftTuple

        public org.drools.core.reteoo.LeftTuple findFirstLeftTuple​(Predicate<org.drools.core.reteoo.LeftTuple> lefttTuplePredicate)
        Specified by:
        findFirstLeftTuple in interface org.drools.core.common.InternalFactHandle
      • setFirstLeftTuple

        public void setFirstLeftTuple​(org.drools.core.reteoo.LeftTuple firstLeftTuple)
        Specified by:
        setFirstLeftTuple in interface org.drools.core.common.InternalFactHandle
      • detachLinkedTuples

        public org.drools.core.common.InternalFactHandle.LinkedTuples detachLinkedTuples()
        Specified by:
        detachLinkedTuples in interface org.drools.core.common.InternalFactHandle
      • detachLinkedTuplesForPartition

        public org.drools.core.common.InternalFactHandle.LinkedTuples detachLinkedTuplesForPartition​(int i)
        Specified by:
        detachLinkedTuplesForPartition in interface org.drools.core.common.InternalFactHandle
      • getLinkedTuples

        public org.drools.core.common.InternalFactHandle.LinkedTuples getLinkedTuples()
        Specified by:
        getLinkedTuples in interface org.drools.core.common.InternalFactHandle