BrightSide Workbench Full Report + Source Code
org.turro.entities.graph.ContactVertexProvider Class Reference
Inheritance diagram for org.turro.entities.graph.ContactVertexProvider:
Collaboration diagram for org.turro.entities.graph.ContactVertexProvider:

Public Member Functions

Set< EntityEdgegetEdges ()
 
- Public Member Functions inherited from org.turro.entities.graph.IVertexProvider
default EntityVertex convert (String root, String id, String name)
 
default EntityVertex convert (String root, Long id, String name)
 
default EntityVertex convert (String root, IContact contact)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file ContactVertexProvider.java.

Member Function Documentation

◆ getEdges()

Set<EntityEdge> org.turro.entities.graph.ContactVertexProvider.getEdges ( )

Implements org.turro.entities.graph.IVertexProvider.

Definition at line 34 of file ContactVertexProvider.java.

34  {
35  return SqlClause.select("br").from("BusinessRelation br")
36  .dao(new ContactsPU())
37  .resultList(BusinessRelation.class)
38  .stream()
39  .map(br -> new EntityEdge(
40  convert("contact", br.getContact().getId(), br.getContact().getName()),
41  convert("contact", br.getBusiness().getId(), br.getBusiness().getName())))
42  .collect(Collectors.toSet());
43  }
default EntityVertex convert(String root, String id, String name)
Here is the call graph for this function:

The documentation for this class was generated from the following file: