org.rhq.helpers.perftest.support.jpa
Class Edge

java.lang.Object
  extended by org.rhq.helpers.perftest.support.jpa.Edge

public class Edge
extends Object

Represents an edge in the EntityDependencyGraph.

Author:
Lukas Krejci

Constructor Summary
Edge(Node from, Node to, Field fromField, Field toField, DependencyType dependencyType)
           
 
Method Summary
 boolean equals(Object other)
           
 DependencyType getDependencyType()
           
 Node getFrom()
           
 Field getFromField()
           
 Node getTo()
           
 Field getToField()
           
 RelationshipTranslation getTranslation()
          The translation of this edge to the terms of SQL table and column names.
 int hashCode()
           
 void setTranslation(RelationshipTranslation translation)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Node from,
            Node to,
            Field fromField,
            Field toField,
            DependencyType dependencyType)
Method Detail

getFrom

public Node getFrom()
Returns:
the node this edge comes from.

getTo

public Node getTo()
Returns:
the node this edge goes to.

getFromField

public Field getFromField()
Returns:
the field on the "from node"'s class that this edge represents.

getToField

public Field getToField()
Returns:
the field on the "to node"'s class that this edge represents.

getDependencyType

public DependencyType getDependencyType()
Returns:
the dependencyType

getTranslation

public RelationshipTranslation getTranslation()
The translation of this edge to the terms of SQL table and column names.

Returns:

setTranslation

public void setTranslation(RelationshipTranslation translation)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.