BrightSide Workbench Full Report + Source Code
org.turro.crm.search.FormulaResults Class Reference

Public Member Functions

 FormulaResults ()
 
 FormulaResults (FormulaType type)
 
java.util.List< FormulagetFormulaList ()
 
WhereClause createCriteria ()
 

Detailed Description

Author
llturro

Definition at line 13 of file FormulaResults.java.

Constructor & Destructor Documentation

◆ FormulaResults() [1/2]

org.turro.crm.search.FormulaResults.FormulaResults ( )

Definition at line 17 of file FormulaResults.java.

17  {
18  this(null);
19  }

◆ FormulaResults() [2/2]

org.turro.crm.search.FormulaResults.FormulaResults ( FormulaType  type)

Definition at line 21 of file FormulaResults.java.

21  {
22  this.type = type;
23  }

Member Function Documentation

◆ createCriteria()

WhereClause org.turro.crm.search.FormulaResults.createCriteria ( )

Definition at line 30 of file FormulaResults.java.

30  {
31  WhereClause wc = new WhereClause();
32 
33  wc.addClause("select distinct formula from Formula as formula");
34  wc.addClause("where 1=1");
35 
36  if(type != null) {
37  wc.addClause("and formula.type = :type");
38  wc.addNamedValue("type", type);
39  }
40 
41  wc.addClause("order by formula.name");
42 
43  return wc;
44  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFormulaList()

java.util.List<Formula> org.turro.crm.search.FormulaResults.getFormulaList ( )

Definition at line 25 of file FormulaResults.java.

25  {
26  Dao dao = new CrmPU();
27  return dao.getResultList(createCriteria());
28  }
Here is the call graph for this function:

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