19 package org.turro.financials.contract.www;
21 import java.util.Collection;
22 import org.turro.elephant.db.WhereClause;
23 import org.turro.financials.db.FinancialsPU;
24 import org.turro.financials.entity.Contract;
25 import org.turro.jpa.Dao;
35 wc.
addClause(
"select count(doc) from Document doc");
40 if(contracts ==
null || contracts.isEmpty())
return null;
42 wc.
addClause(
"select count(doc) from Document doc");
43 wc.
addClause(
"where doc.contract in :contracts");
52 private Dao getDao() {
void addClause(String clause)
void addNamedValue(String name, Object value)
Long getDocumentsCount(Collection< Contract > contracts)
Object getSingleResultOrNull(SqlClause sc)