org.drools.common
Class QueryElementFactHandle

java.lang.Object
  extended by org.drools.common.QueryElementFactHandle
All Implemented Interfaces:
Cloneable, InternalFactHandle, org.drools.runtime.rule.FactHandle

public class QueryElementFactHandle
extends Object
implements InternalFactHandle


Constructor Summary
protected QueryElementFactHandle()
           
  QueryElementFactHandle(Object object, int id, long recency)
           
 
Method Summary
 InternalFactHandle clone()
           
 org.drools.runtime.rule.WorkingMemoryEntryPoint getEntryPoint()
           
 EqualityKey getEqualityKey()
           
 String getExternalForm()
           
 LeftTuple getFirstLeftTuple()
           
 RightTuple getFirstRightTuple()
           
 int getId()
           
 int getIdentityHashCode()
           
 LeftTuple getLastLeftTuple()
           
 RightTuple getLastRightTuple()
           
 Object getObject()
           
 int getObjectHashCode()
           
 long getRecency()
           
 RightTuple getRightTuple()
           
 void invalidate()
           
 boolean isDisconnected()
           
 boolean isEvent()
          Returns true if this FactHandle represents and Event or false if this FactHandle represents a regular Fact
 boolean isValid()
           
 void setEntryPoint(org.drools.runtime.rule.WorkingMemoryEntryPoint ep)
           
 void setEqualityKey(EqualityKey key)
           
 void setFirstLeftTuple(LeftTuple leftTuple)
           
 void setFirstRightTuple(RightTuple rightTuple)
           
 void setLastLeftTuple(LeftTuple leftTuple)
           
 void setLastRightTuple(RightTuple rightTuple)
           
 void setObject(Object object)
           
 void setRecency(long recency)
           
 void setRightTuple(RightTuple rightTuple)
           
 String toExternalForm()
           
 String toString()
           
 String toTupleTree(int indent)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryElementFactHandle

protected QueryElementFactHandle()

QueryElementFactHandle

public QueryElementFactHandle(Object object,
                              int id,
                              long recency)
Method Detail

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.drools.runtime.rule.WorkingMemoryEntryPoint 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:

isValid

public boolean isValid()
Specified by:
isValid in interface InternalFactHandle

setEntryPoint

public void setEntryPoint(org.drools.runtime.rule.WorkingMemoryEntryPoint 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

setRecency

public void setRecency(long recency)
Specified by:
setRecency in interface InternalFactHandle

setRightTuple

public void setRightTuple(RightTuple rightTuple)

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.drools.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

setFirstRightTuple

public void setFirstRightTuple(RightTuple rightTuple)
Specified by:
setFirstRightTuple in interface InternalFactHandle

setLastLeftTuple

public void setLastLeftTuple(LeftTuple leftTuple)
Specified by:
setLastLeftTuple in interface InternalFactHandle

setLastRightTuple

public void setLastRightTuple(RightTuple rightTuple)
Specified by:
setLastRightTuple 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


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.