- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file Matchings.java.
◆ 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.
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);
◆ getOrdering()
static String org.turro.matching.Matchings.getOrdering |
( |
| ) |
|
|
static |
Definition at line 56 of file Matchings.java.
57 return "matching.matching desc";
◆ process()
static void org.turro.matching.Matchings.process |
( |
| ) |
|
|
static |
Definition at line 33 of file Matchings.java.
34 for(IProcess
process : Instances.cached().byAnnotation(ElephantMatching.class, IProcess.class)) {
◆ processFor()
static void org.turro.matching.Matchings.processFor |
( |
Object |
entity | ) |
|
|
static |
Definition at line 39 of file Matchings.java.
40 for(IProcess
process : Instances.cached().byAnnotation(ElephantMatching.class, IProcess.class)) {
42 process.startProcessFor(entity);
The documentation for this class was generated from the following file: