org.drools.core.common
Class QueryElementFactHandle
java.lang.Object
org.drools.core.common.QueryElementFactHandle
- All Implemented Interfaces:
- Cloneable, InternalFactHandle, org.kie.api.runtime.rule.FactHandle
public class QueryElementFactHandle
- extends Object
- implements InternalFactHandle
QueryElementFactHandle
protected QueryElementFactHandle()
QueryElementFactHandle
public QueryElementFactHandle(Object object,
int id,
long recency)
QueryElementFactHandle
public QueryElementFactHandle(Object object,
int id,
int identityHashCode,
long recency)
getId
public int getId()
- Specified by:
getId in interface InternalFactHandle
getIdentityHashCode
public int getIdentityHashCode()
- Specified by:
getIdentityHashCode in interface InternalFactHandle
getObjectHashCode
public int getObjectHashCode()
- Specified by:
getObjectHashCode in interface InternalFactHandle
getRecency
public long getRecency()
- Specified by:
getRecency in interface InternalFactHandle
getLastLeftTuple
public LeftTuple getLastLeftTuple()
- Specified by:
getLastLeftTuple in interface InternalFactHandle
getObject
public Object getObject()
- Specified by:
getObject in interface InternalFactHandle
setObject
public void setObject(Object object)
- Specified by:
setObject in interface InternalFactHandle
getEntryPoint
public org.kie.api.runtime.rule.SessionEntryPoint getEntryPoint()
- Specified by:
getEntryPoint in interface InternalFactHandle
getEqualityKey
public EqualityKey getEqualityKey()
- Specified by:
getEqualityKey in interface InternalFactHandle
getRightTuple
public RightTuple getRightTuple()
invalidate
public void invalidate()
- Specified by:
invalidate in interface InternalFactHandle
isEvent
public boolean isEvent()
- Description copied from interface:
InternalFactHandle
- Returns true if this FactHandle represents
and Event or false if this FactHandle represents
a regular Fact
- Specified by:
isEvent in interface InternalFactHandle
- Returns:
isTrait
public boolean isTrait()
- Specified by:
isTrait in interface InternalFactHandle
isValid
public boolean isValid()
- Specified by:
isValid in interface InternalFactHandle
setEntryPoint
public void setEntryPoint(org.kie.api.runtime.rule.SessionEntryPoint ep)
- Specified by:
setEntryPoint in interface InternalFactHandle
setEqualityKey
public void setEqualityKey(EqualityKey key)
- Specified by:
setEqualityKey in interface InternalFactHandle
setFirstLeftTuple
public void setFirstLeftTuple(LeftTuple leftTuple)
- Specified by:
setFirstLeftTuple in interface InternalFactHandle
setLastLeftTuple
public void setLastLeftTuple(LeftTuple leftTuple)
- Specified by:
setLastLeftTuple in interface InternalFactHandle
setRecency
public void setRecency(long recency)
- Specified by:
setRecency in interface InternalFactHandle
setRightTuple
public void setRightTuple(RightTuple rightTuple)
quickClone
public InternalFactHandle quickClone()
- Specified by:
quickClone in interface InternalFactHandle
clone
public InternalFactHandle clone()
- Specified by:
clone in interface InternalFactHandle- Overrides:
clone in class Object
toExternalForm
public String toExternalForm()
- Specified by:
toExternalForm in interface InternalFactHandle- Specified by:
toExternalForm in interface org.kie.api.runtime.rule.FactHandle
getExternalForm
public String getExternalForm()
getFirstLeftTuple
public LeftTuple getFirstLeftTuple()
- Specified by:
getFirstLeftTuple in interface InternalFactHandle
getFirstRightTuple
public RightTuple getFirstRightTuple()
- Specified by:
getFirstRightTuple in interface InternalFactHandle
getLastRightTuple
public RightTuple getLastRightTuple()
- Specified by:
getLastRightTuple in interface InternalFactHandle
toTupleTree
public String toTupleTree(int indent)
- Specified by:
toTupleTree in interface InternalFactHandle
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnected in interface InternalFactHandle
toString
public String toString()
- Overrides:
toString in class Object
disconnect
public void disconnect()
- Specified by:
disconnect in interface InternalFactHandle
addFirstLeftTuple
public void addFirstLeftTuple(LeftTuple leftTuple)
- Specified by:
addFirstLeftTuple in interface InternalFactHandle
addLastLeftTuple
public void addLastLeftTuple(LeftTuple leftTuple)
- Specified by:
addLastLeftTuple in interface InternalFactHandle
addLeftTupleInPosition
public void addLeftTupleInPosition(LeftTuple leftTuple)
- Specified by:
addLeftTupleInPosition in interface InternalFactHandle
removeLeftTuple
public void removeLeftTuple(LeftTuple leftTuple)
- Specified by:
removeLeftTuple in interface InternalFactHandle
clearLeftTuples
public void clearLeftTuples()
- Specified by:
clearLeftTuples in interface InternalFactHandle
clearRightTuples
public void clearRightTuples()
- Specified by:
clearRightTuples in interface InternalFactHandle
addFirstRightTuple
public void addFirstRightTuple(RightTuple rightTuple)
- Specified by:
addFirstRightTuple in interface InternalFactHandle
addLastRightTuple
public void addLastRightTuple(RightTuple rightTuple)
- Specified by:
addLastRightTuple in interface InternalFactHandle
addRightTupleInPosition
public void addRightTupleInPosition(RightTuple rightTuple)
- Specified by:
addRightTupleInPosition in interface InternalFactHandle
removeRightTuple
public void removeRightTuple(RightTuple rightTuple)
- Specified by:
removeRightTuple in interface InternalFactHandle
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.