◆ NewsletterGrid()
org.turro.newsletter.NewsletterGrid.NewsletterGrid |
( |
| ) |
|
◆ createNewsletterCriteria()
Definition at line 137 of file NewsletterGrid.java.
138 WhereClause wc =
new WhereClause();
139 wc.addClause(
"select newsletter from Newsletter newsletter");
140 wc.addClause(
"where newsletter.accepted = :accepted");
141 wc.addNamedValue(
"accepted", accepted);
142 if(category !=
null) {
143 wc.addClause(
"and newsletter.idCategory = :category");
144 wc.addNamedValue(
"category", category.getIdCategory());
146 if(!Strings.isBlank(text)) {
147 text =
"*" + text +
"*";
148 wc.addClause(
"and newsletter.title like :text1");
149 wc.addNamedValue(
"text1", text.replaceAll(
"\\*",
"%"));
152 wc.addClause(
"order by newsletter.date DESC");
◆ setValues()
void org.turro.newsletter.NewsletterGrid.setValues |
( |
boolean |
accepted, |
|
|
NotificationCategory |
category, |
|
|
String |
text |
|
) |
| |
The documentation for this class was generated from the following file: