| java.lang.Object org.mmbase.core.event.Event org.mmbase.core.event.RelationEvent
RelationEvent | public class RelationEvent extends Event implements Serializable,Cloneable(Code) | | This class reflects a ,,change relation event. it contains information about the kind of event (new, delete, change),
and it contains a reference to the appropriate typerel node, which allows you to find out on which relation from
which builder to which builder, the event occered. This is usefull for caching optimization. A relation changed
event is called the twoo nodes that the relation links (or used to).
author: Ernst Bunders since: MMBase-1.8 version: $Id: RelationEvent.java,v 1.21 2007/07/26 11:45:54 michiel Exp $ |
Constructor Summary | |
public | RelationEvent(NodeEvent nodeEvent, int relationSourceNumber, int relationDestinationNumber, String relationSourceType, String relationDestinationType, int role) |
RelationEvent | public RelationEvent(NodeEvent nodeEvent, int relationSourceNumber, int relationDestinationNumber, String relationSourceType, String relationDestinationType, int role)(Code) | | Constructor for relation event
Parameters: nodeEvent - Parameters: relationSourceNumber - the nodenumber of the 'soucre' node Parameters: relationDestinationNumber - the nodenumber of the 'destination' node Parameters: relationSourceType - the builder name of the 'source' node Parameters: relationDestinationType - the builder name of the 'destination' node Parameters: role - the nodenumber of the reldef node |
getRelationDestinationNumber | public int getRelationDestinationNumber()(Code) | | Returns the relationDestinationNumber. |
getRelationDestinationType | public String getRelationDestinationType()(Code) | | Returns the relationDestinationType. |
getRelationSourceNumber | public int getRelationSourceNumber()(Code) | | Returns the relationSourceNumber. |
getRelationSourceType | public String getRelationSourceType()(Code) | | Returns the relationSourceType. |
getRole | public int getRole()(Code) | | the role number |
getType | public int getType()(Code) | | |
hashCode | public int hashCode()(Code) | | |
|
|