public class GraphBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
GraphBuilder.NodeBuilder
Inner class { Node builder }
|
(package private) class |
GraphBuilder.RelationBuilder
Inner class {Relation builder}
|
| Modifier and Type | Field and Description |
|---|---|
private GraphGenerator |
generator |
private ObjectGraph |
graph |
| Constructor and Description |
|---|
GraphBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(GraphGenerator generator)
Assign generator reference.
|
GraphBuilder |
assignHeadNode(Node headNode)
Assign head node to graph
|
Node |
buildNode(Object entity,
PersistenceDelegator pd,
Object entityId,
NodeState nodeState)
On build node.
|
(package private) ObjectGraph |
getGraph()
Returns completed graph.
|
(package private) GraphBuilder.RelationBuilder |
getRelationBuilder(Object target,
Relation relation,
Node source)
Returns relation builder instance.
|
private ObjectGraph graph
private GraphGenerator generator
public void assign(GraphGenerator generator)
generator - graph generator.public final Node buildNode(Object entity, PersistenceDelegator pd, Object entityId, NodeState nodeState)
entity - entitypc - persistence cacheentityId - entity idpublic GraphBuilder assignHeadNode(Node headNode)
headNode - GraphBuilder.RelationBuilder getRelationBuilder(Object target, Relation relation, Node source)
target - relational entityrelation - relationsource - relation originator entityObjectGraph getGraph()
Copyright © 2015. All Rights Reserved.