18 package org.turro.financials.model.register;
20 import java.util.Date;
21 import org.turro.financials.db.FinancialsPU;
22 import org.turro.financials.entity.RegisterView;
30 private String account;
33 this.account = account;
37 Object[] pars = view !=
null ?
50 "select sum(entry.debit), sum(entry.credit) " +
51 "from RegisterEntry as entry " +
52 "where entry.account.id like ? " +
53 "and entry.register.registerDate >= ? " +
54 "and entry.register.registerDate <= ? " +
55 (view !=
null ?
"and entry.register.view = ? " :
""),
58 (Double) (o[0] ==
null ? 0.0 : o[0]),
59 (Double) (o[1] ==
null ? 0.0 : o[1])
64 Object[] pars = view !=
null ?
75 "select sum(entry.debit-entry.credit) " +
76 "from RegisterEntry as entry " +
77 "where entry.account.id like ? " +
78 "and entry.register.registerDate <= ? " +
79 (view !=
null ?
"and entry.register.view = ? " :
""),
Double[] getAmounts(RegisterView view, Date fromDate, Date toDate)
Double getBalance(RegisterView view, Date toDate)
AccountStringWrapper(String account)
Object getSingleResult(WhereClause wc)