public class QueryElementFactHandle extends Object implements InternalFactHandle
InternalFactHandle.LinkedTuples| Modifier | Constructor and Description |
|---|---|
protected |
QueryElementFactHandle() |
|
QueryElementFactHandle(Object object,
int id,
int identityHashCode,
long recency) |
|
QueryElementFactHandle(Object object,
int id,
long recency) |
protected QueryElementFactHandle()
public QueryElementFactHandle(Object object, int id, long recency)
public QueryElementFactHandle(Object object, int id, int identityHashCode, long recency)
public boolean isNegated()
isNegated in interface InternalFactHandlepublic void setNegated(boolean negated)
setNegated in interface InternalFactHandlepublic int getId()
getId in interface InternalFactHandlepublic int getIdentityHashCode()
getIdentityHashCode in interface InternalFactHandlepublic int getObjectHashCode()
getObjectHashCode in interface InternalFactHandlepublic long getRecency()
getRecency in interface InternalFactHandlepublic LeftTuple getLastLeftTuple()
public Object getObject()
getObject in interface InternalFactHandlepublic String getObjectClassName()
getObjectClassName in interface InternalFactHandlepublic void setObject(Object object)
setObject in interface InternalFactHandlepublic InternalWorkingMemoryEntryPoint getEntryPoint()
getEntryPoint in interface InternalFactHandlepublic EqualityKey getEqualityKey()
getEqualityKey in interface InternalFactHandlepublic RightTuple getRightTuple()
public void invalidate()
invalidate in interface InternalFactHandlepublic boolean isEvent()
InternalFactHandleisEvent in interface InternalFactHandlepublic boolean isTraitOrTraitable()
isTraitOrTraitable in interface InternalFactHandlepublic boolean isTraitable()
isTraitable in interface InternalFactHandlepublic boolean isTraiting()
isTraiting in interface InternalFactHandlepublic TraitTypeEnum getTraitType()
getTraitType in interface InternalFactHandlepublic boolean isValid()
isValid in interface InternalFactHandlepublic void setEntryPoint(InternalWorkingMemoryEntryPoint ep)
public void setEqualityKey(EqualityKey key)
setEqualityKey in interface InternalFactHandlepublic void setFirstLeftTuple(LeftTuple leftTuple)
setFirstLeftTuple in interface InternalFactHandlepublic InternalFactHandle.LinkedTuples getLinkedTuples()
getLinkedTuples in interface InternalFactHandlepublic InternalFactHandle.LinkedTuples detachLinkedTuples()
detachLinkedTuples in interface InternalFactHandlepublic InternalFactHandle.LinkedTuples detachLinkedTuplesForPartition(int i)
detachLinkedTuplesForPartition in interface InternalFactHandlepublic void setLastLeftTuple(LeftTuple leftTuple)
public void setRecency(long recency)
setRecency in interface InternalFactHandlepublic void setRightTuple(RightTuple rightTuple)
public InternalFactHandle clone()
clone in interface InternalFactHandleclone in class Objectpublic String toExternalForm()
toExternalForm in interface InternalFactHandletoExternalForm in interface org.kie.api.runtime.rule.FactHandlepublic String getExternalForm()
public LeftTuple getFirstLeftTuple()
getFirstLeftTuple in interface InternalFactHandlepublic RightTuple getFirstRightTuple()
getFirstRightTuple in interface InternalFactHandlepublic RightTuple getLastRightTuple()
public String toTupleTree(int indent)
public boolean isDisconnected()
isDisconnected in interface InternalFactHandlepublic void disconnect()
disconnect in interface InternalFactHandlepublic void addFirstLeftTuple(LeftTuple leftTuple)
addFirstLeftTuple in interface InternalFactHandlepublic void addLastLeftTuple(LeftTuple leftTuple)
addLastLeftTuple in interface InternalFactHandlepublic void removeLeftTuple(LeftTuple leftTuple)
removeLeftTuple in interface InternalFactHandlepublic void clearLeftTuples()
clearLeftTuples in interface InternalFactHandlepublic void clearRightTuples()
clearRightTuples in interface InternalFactHandlepublic void addFirstRightTuple(RightTuple rightTuple)
addFirstRightTuple in interface InternalFactHandlepublic void addLastRightTuple(RightTuple rightTuple)
addLastRightTuple in interface InternalFactHandlepublic void addTupleInPosition(Tuple rightTuple)
addTupleInPosition in interface InternalFactHandlepublic void removeRightTuple(RightTuple rightTuple)
removeRightTuple in interface InternalFactHandlepublic <K> K as(Class<K> klass) throws ClassCastException
as in interface InternalFactHandleClassCastExceptionpublic boolean isExpired()
isExpired in interface InternalFactHandlepublic boolean isPendingRemoveFromStore()
isPendingRemoveFromStore in interface InternalFactHandlepublic void forEachRightTuple(Consumer<RightTuple> rightTupleConsumer)
forEachRightTuple in interface InternalFactHandlepublic void forEachLeftTuple(Consumer<LeftTuple> leftTupleConsumer)
forEachLeftTuple in interface InternalFactHandlepublic RightTuple findFirstRightTuple(Predicate<RightTuple> rightTuplePredicate)
findFirstRightTuple in interface InternalFactHandlepublic LeftTuple findFirstLeftTuple(Predicate<LeftTuple> lefttTuplePredicate)
findFirstLeftTuple in interface InternalFactHandleCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.