BrightSide Workbench Full Report + Source Code
org.turro.contacts.log.LogModel Class Reference

Public Member Functions

Long logCount ()
 
Long loginCount ()
 
long getCountOf (String comment, String logPath, Date since)
 

Detailed Description

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

Definition at line 30 of file LogModel.java.

Member Function Documentation

◆ getCountOf()

long org.turro.contacts.log.LogModel.getCountOf ( String  comment,
String  logPath,
Date  since 
)

Definition at line 46 of file LogModel.java.

46  {
47  WhereClause wc = new WhereClause();
48  wc.addClause("select count(log) from LogEntry log");
49  wc.addClause("where comment = :comment");
50  wc.addNamedValue("comment", comment);
51  wc.addClause("and path = :path");
52  wc.addNamedValue("path", logPath);
53  wc.addClause("and dateLog >= :date");
54  wc.addNamedValue("date", since);
55  return (Long) getDao().getSingleResultOrNull(wc);
56  }
Object getSingleResultOrNull(SqlClause sc)
Definition: Dao.java:419
Here is the call graph for this function:

◆ logCount()

Long org.turro.contacts.log.LogModel.logCount ( )

Definition at line 32 of file LogModel.java.

32  {
33  WhereClause wc = new WhereClause();
34  wc.addClause("select count(log) from LogEntry log");
35  return (Long) getDao().getSingleResultOrNull(wc);
36  }
Here is the call graph for this function:

◆ loginCount()

Long org.turro.contacts.log.LogModel.loginCount ( )

Definition at line 38 of file LogModel.java.

38  {
39  WhereClause wc = new WhereClause();
40  wc.addClause("select count(log) from LogEntry log");
41  wc.addClause("where path = :path");
42  wc.addNamedValue("path", "/log/in");
43  return (Long) getDao().getSingleResultOrNull(wc);
44  }
Here is the call graph for this function:

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