- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 35 of file ChallengesVM.java.
◆ ChallengesVM()
org.turro.students.model.ChallengesVM.ChallengesVM |
( |
| ) |
|
◆ getModel()
List<Challenge> org.turro.students.model.ChallengesVM.getModel |
( |
| ) |
|
Definition at line 46 of file ChallengesVM.java.
47 WhereClause wc =
new WhereClause();
48 wc.addClause(
"select s from Challenge s");
49 wc.addClause(
"where 1=1");
50 if(!Strings.isBlank(searchValue)) {
51 wc.addClause(
"and s.question like :searchValue");
52 wc.addNamedValue(
"searchValue", SQLHelper.convertToPartialLike(searchValue));
54 wc.addClause(
"order by s.creation desc");
56 return getDao().getResultList(wc);
◆ getSearchValue()
String org.turro.students.model.ChallengesVM.getSearchValue |
( |
| ) |
|
◆ setSearchValue()
void org.turro.students.model.ChallengesVM.setSearchValue |
( |
String |
searchValue | ) |
|
◆ update()
void org.turro.students.model.ChallengesVM.update |
( |
| ) |
|
The documentation for this class was generated from the following file: