BrightSide Workbench Full Report + Source Code
org.turro.matching.Matchings Class Reference

Static Public Member Functions

static void process ()
 
static void processFor (Object entity)
 
static void addJoin (WhereClause wc, String table, String entityRoot, String entityId, IContact contact, String sortOrder)
 
static String getOrdering ()
 

Detailed Description

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

Definition at line 31 of file Matchings.java.

Member Function Documentation

◆ addJoin()

static void org.turro.matching.Matchings.addJoin ( WhereClause  wc,
String  table,
String  entityRoot,
String  entityId,
IContact  contact,
String  sortOrder 
)
static

Definition at line 47 of file Matchings.java.

47  {
48  String entityPath = "concat('/" + entityRoot + "/', " + entityRoot + "." + entityId + ")";
49  String relatedPath = "/contact/" + contact.getId();
50  wc.addClause("left outer join " + table + " matching");
51  wc.addClause("on matching.entityPath = " + entityPath + " and matching.concept = :matchconcept");
52  wc.addClause("and matching.relatedPath = '" + relatedPath +"'");
53  wc.addNamedValue("matchconcept", Strings.isBlank(sortOrder) ? "*" : sortOrder);
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOrdering()

static String org.turro.matching.Matchings.getOrdering ( )
static

Definition at line 56 of file Matchings.java.

56  {
57  return "matching.matching desc";
58  }
Here is the caller graph for this function:

◆ process()

static void org.turro.matching.Matchings.process ( )
static

Definition at line 33 of file Matchings.java.

33  {
34  for(IProcess process : Instances.cached().byAnnotation(ElephantMatching.class, IProcess.class)) {
35  process.startProcess();
36  }
37  }
Here is the caller graph for this function:

◆ processFor()

static void org.turro.matching.Matchings.processFor ( Object  entity)
static

Definition at line 39 of file Matchings.java.

39  {
40  for(IProcess process : Instances.cached().byAnnotation(ElephantMatching.class, IProcess.class)) {
41  if(process.itsMine(entity)) {
42  process.startProcessFor(entity);
43  }
44  }
45  }
Here is the call graph for this function:

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