19 package org.turro.alliance.www;
21 import java.util.Collections;
22 import java.util.List;
23 import org.turro.alliance.db.AlliancePU;
24 import org.turro.alliance.db.entities.AxCenter;
25 import org.turro.jpa.Dao;
26 import org.turro.sql.SqlClause;
27 import org.turro.string.Strings;
28 import org.turro.util.Cached;
29 import org.zkoss.bind.annotation.Command;
30 import org.zkoss.bind.annotation.NotifyChange;
40 private String search;
50 @NotifyChange(
"model")
52 public
void search() {
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")
69 private final Cached<Dao> dao = Cached.instance(() ->
new AlliancePU());
List< AxCenter > getModel()
void setSearch(String search)