站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ObjectLogEvent (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.audit.event
Class ObjectLogEvent

java.lang.Object
  extended by org.drools.audit.event.LogEvent
      extended by org.drools.audit.event.ObjectLogEvent

public class ObjectLogEvent
extends LogEvent

An object event logged by the WorkingMemoryLogger. It is a snapshot of the event as it was thrown by the working memory. It contains the fact id and a String represention of the object at the time the event was logged.

Author:
Kris Verlaenen

Field Summary
 
Fields inherited from class org.drools.audit.event.LogEvent
ACTIVATION_CANCELLED, ACTIVATION_CREATED, AFTER_ACTIVATION_FIRE, BEFORE_ACTIVATION_FIRE, OBJECT_ASSERTED, OBJECT_MODIFIED, OBJECT_RETRACTED
 
Constructor Summary
ObjectLogEvent(int type, long factId, String objectToString)
          Create a new activation log event.
 
Method Summary
 long getFactId()
          Returns the fact id of the object this event is about.
 String getObjectToString()
          Returns a toString of the fact this event is about at the time the event was created.
 String toString()
           
 
Methods inherited from class org.drools.audit.event.LogEvent
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectLogEvent

public ObjectLogEvent(int type,
                      long factId,
                      String objectToString)
Create a new activation log event.

Parameters:
type - The type of event. This can only be LogEvent.OBJECT_ASSERTED, LogEvent.OBJECT_MODIFIED or LogEvent.OBJECT_RETRACTED.
factId - The id of the fact
objectToString - A toString of the fact
Method Detail

getFactId

public long getFactId()
Returns the fact id of the object this event is about.

Returns:
the id of the fact

getObjectToString

public String getObjectToString()
Returns a toString of the fact this event is about at the time the event was created.

Returns:
the toString of the fact

toString

public String toString()
Overrides:
toString in class Object


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