|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.helpers.perftest.support.jpa.EntityDependencyGraph
public class EntityDependencyGraph
Produces a graph of Nodes linked to each other by Edges.
Each Node corresponds to a single JPA entity and each Edge between them
corresponds to a single relationship between the JPA entities (i.e. one of OneToOne,
OneToMany, ManyToOne or ManyToMany).
| Constructor Summary | |
|---|---|
EntityDependencyGraph()
|
|
| Method Summary | |
|---|---|
Set<Node> |
addEntities(Class<?>... entities)
A convenience method to add a number of entities to the graph at once. |
Set<Node> |
addEntities(Collection<Class<?>> entities)
A convenience method to add a number of entities to the graph at once. |
Node |
addEntity(Class<?> entity)
Adds a single entity to the dependency graph and analyzes it. |
Set<Node> |
getAllNodes()
|
Set<Node> |
getLeafNodes()
|
Node |
getNode(Class<?> entityClass)
|
Set<Node> |
getRootNodes()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityDependencyGraph()
| Method Detail |
|---|
public Node addEntity(Class<?> entity)
entity -
Node instance corresponding to the provided entity class or null
if the class doesn't represent a JPA entity.public Set<Node> addEntities(Class<?>... entities)
entities -
public Set<Node> addEntities(Collection<Class<?>> entities)
entities -
public Set<Node> getAllNodes()
public Node getNode(Class<?> entityClass)
entityClass - the class of an entity
public Set<Node> getRootNodes()
public Set<Node> getLeafNodes()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||