BrightSide Workbench Full Report + Source Code
org.turro.alliance.www.CentersVM Class Reference

Public Member Functions

String getSearch ()
 
void setSearch (String search)
 
void search ()
 
List< AxCentergetModel ()
 

Detailed Description

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

Definition at line 36 of file CentersVM.java.

Member Function Documentation

◆ getModel()

List<AxCenter> org.turro.alliance.www.CentersVM.getModel ( )

Definition at line 58 of file CentersVM.java.

58  {
59  if(Strings.isBlank(search)) return Collections.EMPTY_LIST;
60  return SqlClause.select("c").from("AxCenter c")
61  .where().partial(search, "c.name", "c.email")
62  .orderBy("c.name")
63  .dao(dao.get())
64  .resultList(AxCenter.class);
65  }

◆ getSearch()

String org.turro.alliance.www.CentersVM.getSearch ( )

Definition at line 42 of file CentersVM.java.

42  {
43  return search;
44  }

◆ search()

void org.turro.alliance.www.CentersVM.search ( )

Definition at line 52 of file CentersVM.java.

52  {
53 
54  }

◆ setSearch()

void org.turro.alliance.www.CentersVM.setSearch ( String  search)

Definition at line 46 of file CentersVM.java.

46  {
47  this.search = search;
48  }

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