org.rhq.helpers.perftest.support.jpa
Class Edge
java.lang.Object
org.rhq.helpers.perftest.support.jpa.Edge
public class Edge
- extends Object
Represents an edge in the EntityDependencyGraph.
- Author:
- Lukas Krejci
Edge
public Edge(Node from,
Node to,
Field fromField,
Field toField,
DependencyType dependencyType)
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.