BrightSide Workbench Full Report + Source Code
org.turro.financials.contract.www.DocumentModel Class Reference

Public Member Functions

Long getDocumentsCount ()
 
Long getDocumentsCount (Collection< Contract > contracts)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file DocumentModel.java.

Member Function Documentation

◆ getDocumentsCount() [1/2]

Long org.turro.financials.contract.www.DocumentModel.getDocumentsCount ( )

Definition at line 33 of file DocumentModel.java.

33  {
34  WhereClause wc = new WhereClause();
35  wc.addClause("select count(doc) from Document doc");
36  return (Long) getDao().getSingleResultOrNull(wc);
37  }
Object getSingleResultOrNull(SqlClause sc)
Definition: Dao.java:419
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDocumentsCount() [2/2]

Long org.turro.financials.contract.www.DocumentModel.getDocumentsCount ( Collection< Contract contracts)

Definition at line 39 of file DocumentModel.java.

39  {
40  if(contracts == null || contracts.isEmpty()) return null;
41  WhereClause wc = new WhereClause();
42  wc.addClause("select count(doc) from Document doc");
43  wc.addClause("where doc.contract in :contracts");
44  wc.addNamedValue("contracts", contracts);
45  return (Long) getDao().getSingleResultOrNull(wc);
46  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: