◆ PublicationGrid()
org.turro.publication.zul.ctrl.PublicationGrid.PublicationGrid |
( |
| ) |
|
◆ createPublicationCriteria()
static WhereClause org.turro.publication.zul.ctrl.PublicationGrid.createPublicationCriteria |
( |
String |
idContact, |
|
|
boolean |
accepted, |
|
|
PublicationCategory |
category, |
|
|
String |
text |
|
) |
| |
|
static |
Definition at line 141 of file PublicationGrid.java.
142 WhereClause wc =
new WhereClause();
143 wc.addClause(
"select publication from Publication publication");
144 wc.addClause(
"where publication.accepted = :accepted");
145 wc.addNamedValue(
"accepted", accepted);
146 if(category !=
null) {
147 wc.addClause(
"and publication.publicationCategory = :category");
148 wc.addNamedValue(
"category", category);
150 if(idContact !=
null) {
151 wc.addClause(
"and publication.idContact = :idContact");
152 wc.addNamedValue(
"idContact", idContact);
154 if(!Strings.isBlank(text)) {
155 text =
"*" + text +
"*";
156 wc.addClause(
"and (publication.title like :text1");
157 wc.addNamedValue(
"text1", text.replaceAll(
"\\*",
"%"));
158 wc.addClause(
"or publication.summary like :text2)");
159 wc.addNamedValue(
"text2", text.replaceAll(
"\\*",
"%"));
161 wc.addClause(
"order by publication.date DESC");
◆ setValues()
void org.turro.publication.zul.ctrl.PublicationGrid.setValues |
( |
String |
idContact, |
|
|
boolean |
accepted, |
|
|
PublicationCategory |
category, |
|
|
String |
text |
|
) |
| |
The documentation for this class was generated from the following file: