BrightSide Workbench Full Report + Source Code
org.turro.indicator.PostprocessClause Class Reference

Public Member Functions

PostprocessClause setEntityPath (String entityPath)
 
PostprocessClause setSpringPaths (List< String > springPaths)
 
WhereClause getRankingClause ()
 

Static Public Member Functions

static PostprocessClause load (String table)
 

Detailed Description

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

Definition at line 28 of file PostprocessClause.java.

Member Function Documentation

◆ getRankingClause()

WhereClause org.turro.indicator.PostprocessClause.getRankingClause ( )

Definition at line 48 of file PostprocessClause.java.

48  {
49  WhereClause wc = new WhereClause();
50  wc.addClause("select new org.turro.ranking.GenericRanking(");
51  wc.addClause("'" + entityPath + "', concept, sum(ranking))");
52  wc.addClause("from " + table);
53  wc.addIn("where", "entityPath", springPaths);
54  wc.addClause("group by concept");
55  wc.addClause("having sum(ranking) <> 0");
56  return wc;
57  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

static PostprocessClause org.turro.indicator.PostprocessClause.load ( String  table)
static

Definition at line 34 of file PostprocessClause.java.

34  {
35  return new PostprocessClause(table);
36  }
Here is the caller graph for this function:

◆ setEntityPath()

PostprocessClause org.turro.indicator.PostprocessClause.setEntityPath ( String  entityPath)

Definition at line 38 of file PostprocessClause.java.

38  {
39  this.entityPath = entityPath;
40  return this;
41  }
Here is the caller graph for this function:

◆ setSpringPaths()

PostprocessClause org.turro.indicator.PostprocessClause.setSpringPaths ( List< String >  springPaths)

Definition at line 43 of file PostprocessClause.java.

43  {
44  this.springPaths = springPaths;
45  return this;
46  }
Here is the caller graph for this function:

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