19 package org.turro.activity;
21 import java.util.Date;
22 import java.util.List;
23 import org.turro.elephant.db.WhereClause;
24 import org.turro.entities.Entities;
25 import org.turro.jpa.Dao;
26 import org.turro.publication.db.PublicationPU;
27 import org.turro.publication.entity.Publication;
28 import org.zkoss.lang.Strings;
57 wc.
addClause(
"select publication" + check(select) +
" from Publication as publication");
58 wc.
addClause(
"where publication.date >= :date");
60 return getDao().getResultList(wc);
63 private String check(String select) {
64 return Strings.isBlank(select) ?
"" : select;
71 private Dao getDao() {
73 _dao =
new PublicationPU();
void setSortPath(String sortPath)
List getPublications(String path, Date from, String select)
EntityActivitySet getActivities(Date from, String entityPath, String type)
Object getMainEntity(Object entity)
void addClause(String clause)
void addNamedValue(String name, Object value)
static IElephantEntity getController(String path)
static String getObjectPath(Object object)
String getHierarchicalPath()