org.rhq.core.domain.event
Class EventDefinition

java.lang.Object
  extended by org.rhq.core.domain.event.EventDefinition
All Implemented Interfaces:
Externalizable, Serializable

public class EventDefinition
extends Object
implements Externalizable

The definition of a type of Event supported by a particular ResourceType.

See Also:
Serialized Form

Field Summary
static String QUERY_EVENT_DEFINITIONS_BY_RESOURCE_TYPE_ID
           
static String TABLE_NAME
           
 
Constructor Summary
EventDefinition()
           
EventDefinition(ResourceType resourceType, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
           
 String getDisplayName()
           
 int getId()
           
 String getName()
           
 ResourceType getResourceType()
           
 int getResourceTypeId()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setDescription(String description)
           
 void setDisplayName(String displayName)
           
 void setResourceTypeId(int resourceTypeId)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

QUERY_EVENT_DEFINITIONS_BY_RESOURCE_TYPE_ID

public static final String QUERY_EVENT_DEFINITIONS_BY_RESOURCE_TYPE_ID
See Also:
Constant Field Values
Constructor Detail

EventDefinition

public EventDefinition()

EventDefinition

public EventDefinition(@NotNull
                       ResourceType resourceType,
                       @NotNull
                       String name)
Method Detail

getId

public int getId()

getResourceType

@NotNull
public ResourceType getResourceType()

getResourceTypeId

public int getResourceTypeId()

getName

@NotNull
public String getName()

getDisplayName

public String getDisplayName()

setDisplayName

public void setDisplayName(String displayName)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

setResourceTypeId

public void setResourceTypeId(int resourceTypeId)


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.