atg.service.event
Class GenericEvent

java.lang.Object
  extended by java.util.EventObject
      extended by atg.service.event.GenericEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PageEvent, SessionEvent, TemplateEmailEvent, WebAppEvent

public class GenericEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
static int[] ALL_TYPES
          An array of all of the event type constants for this event.
static java.lang.String CLASS_VERSION
          Class version string
protected  java.util.Date mDate
          The time as a Date when the event was fired.
protected  long mTime
          The time in milliseconds when the event was fired.
protected  java.sql.Timestamp mTimestamp
          The time as a Timestamp when the event was fired
protected  int mType
          The type of this event.
static int TYPE_VANILLA
          A generic event type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GenericEvent(java.lang.Object pSource)
          Constructs a generic event with the default, generic type.
GenericEvent(java.lang.Object pSource, int pEventType)
          Constructs a generic event of the given type.
 
Method Summary
 int[] getAllTypes()
           
 java.lang.Object getSource()
           
 long getTime()
           
 java.util.Date getTimeAsDate()
           
 java.sql.Timestamp getTimeAsTimestamp()
           
 int getType()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


TYPE_VANILLA

public static final int TYPE_VANILLA
A generic event type.

See Also:
Constant Field Values

ALL_TYPES

public static int[] ALL_TYPES
An array of all of the event type constants for this event.


mTime

protected long mTime
The time in milliseconds when the event was fired.


mType

protected int mType
The type of this event.


mDate

protected java.util.Date mDate
The time as a Date when the event was fired.


mTimestamp

protected java.sql.Timestamp mTimestamp
The time as a Timestamp when the event was fired

Constructor Detail

GenericEvent

public GenericEvent(java.lang.Object pSource)
Constructs a generic event with the default, generic type.


GenericEvent

public GenericEvent(java.lang.Object pSource,
                    int pEventType)
Constructs a generic event of the given type.

Method Detail

getTime

public long getTime()

getTimeAsDate

public java.util.Date getTimeAsDate()

getTimeAsTimestamp

public java.sql.Timestamp getTimeAsTimestamp()

getType

public int getType()

getAllTypes

public int[] getAllTypes()

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.EventObject