org.jasig.portal.events
Class EventType

java.lang.Object
  extended by org.jasig.portal.events.EventType

public class EventType
extends Object

Descriptor object for portal events, added to support the legacy table structure of the UW-Madison database portal statistics gathering schema.
This class can only be created through the static getEventType methods to ensure only once instance for each getType() is created. The intern() method furthers this functionality allowing client code to ensure they have the correct, single instance.

Version:
$Revision$
Author:
Eric Dalquist

Method Summary
 boolean equals(Object object)
           
 String getDescription()
           
static EventType getEventType(String type)
           
static EventType getEventType(String type, String description)
           
 long getId()
           
 String getType()
           
 int hashCode()
           
 EventType intern()
           
 void setId(long id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getEventType

public static EventType getEventType(String type)

getEventType

public static EventType getEventType(String type,
                                     String description)

getId

public long getId()
Returns:
the id

setId

public void setId(long id)
Parameters:
id - the id to set

getType

public String getType()
Returns:
the type

getDescription

public String getDescription()
Returns:
the description

intern

public EventType intern()
Returns:
The single unique EventType instance for the specified type

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 Jasig. All Rights Reserved.