logger
Class LogEvent

java.lang.Object
  extended by logger.LogEvent
All Implemented Interfaces:
java.io.Serializable

public class LogEvent
extends java.lang.Object
implements java.io.Serializable

A log event records a modification of an object.

See Also:
Serialized Form

Field Summary
private  long objectID
          the id of the modified object
private  java.lang.Object oldValue
          the object value before the event
private  java.lang.String property
          the modified property
private static long serialVersionUID
          the serialization version identifier
private  long timeStamp
          the time of the modification
private  java.lang.String value
          the new value of the modified property
 
Constructor Summary
LogEvent(long objectID, java.lang.String property, java.lang.String value, java.lang.Object oldValue)
          Constructs a log event
 
Method Summary
 long getObjectID()
          Gets the identifier of the modified object.
 java.lang.Object getOldValue()
          Gets the old object value.
 java.lang.String getProperty()
          Gets the modified property.
 long getTimeStamp()
          Gets the time of the modification.
 java.lang.String getValue()
          Gets the new property value.
 void setTimeStamp(long time)
          Sets the time of the modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
the serialization version identifier

See Also:
Constant Field Values

objectID

private long objectID
the id of the modified object


property

private java.lang.String property
the modified property


value

private java.lang.String value
the new value of the modified property


oldValue

private java.lang.Object oldValue
the object value before the event


timeStamp

private long timeStamp
the time of the modification

Constructor Detail

LogEvent

public LogEvent(long objectID,
                java.lang.String property,
                java.lang.String value,
                java.lang.Object oldValue)
Constructs a log event

Parameters:
objectID - - the id of the modified object
property - - the modified property
value - - the new property value
Method Detail

setTimeStamp

public void setTimeStamp(long time)
Sets the time of the modification.


getOldValue

public java.lang.Object getOldValue()
Gets the old object value.


getObjectID

public long getObjectID()
Gets the identifier of the modified object.


getProperty

public java.lang.String getProperty()
Gets the modified property.


getTimeStamp

public long getTimeStamp()
Gets the time of the modification.


getValue

public java.lang.String getValue()
Gets the new property value.