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

Public Member Functions

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

Detailed Description

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

Definition at line 37 of file StudentsVM.java.

Member Function Documentation

◆ getModel()

List<AxStudent> org.turro.alliance.www.StudentsVM.getModel ( )

Definition at line 59 of file StudentsVM.java.

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

◆ getSearch()

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

Definition at line 43 of file StudentsVM.java.

43  {
44  return search;
45  }

◆ search()

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

Definition at line 53 of file StudentsVM.java.

53  {
54 
55  }

◆ setSearch()

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

Definition at line 47 of file StudentsVM.java.

47  {
48  this.search = search;
49  }

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