- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 30 of file Rankings.java.
◆ addJoin()
static void org.turro.ranking.Rankings.addJoin |
( |
WhereClause |
wc, |
|
|
String |
table, |
|
|
String |
entityRoot, |
|
|
String |
entityId, |
|
|
String |
sortOrder |
|
) |
| |
|
static |
Definition at line 46 of file Rankings.java.
47 String entityPath =
"concat('/" + entityRoot +
"/', " + entityRoot +
"." + entityId +
")";
48 wc.addClause(
"left outer join " + table +
" ranking on ranking.entityPath = " + entityPath +
" and ranking.concept = :rankconcept");
49 wc.addNamedValue(
"rankconcept", Strings.isBlank(sortOrder) ?
"*" : sortOrder);
◆ getOrdering()
static String org.turro.ranking.Rankings.getOrdering |
( |
| ) |
|
|
static |
Definition at line 52 of file Rankings.java.
53 return "ranking.ranking desc";
◆ process()
static void org.turro.ranking.Rankings.process |
( |
| ) |
|
|
static |
Definition at line 32 of file Rankings.java.
33 for(IProcess
process : Instances.cached().byAnnotation(ElephantRanking.class, IProcess.class)) {
◆ processFor()
static void org.turro.ranking.Rankings.processFor |
( |
Object |
entity | ) |
|
|
static |
Definition at line 38 of file Rankings.java.
39 for(IProcess
process : Instances.cached().byAnnotation(ElephantRanking.class, IProcess.class)) {
41 process.startProcessFor(entity);
The documentation for this class was generated from the following file: