19 package org.turro.log;
21 import java.io.Serializable;
22 import java.util.Date;
23 import org.turro.string.Strings;
24 import org.turro.elephant.context.Application;
25 import org.turro.elephant.db.ElephantPU;
26 import org.turro.elephant.entities.db.SystemLog;
27 import org.turro.entities.EmptyController;
28 import org.turro.entities.Entities;
29 import org.turro.entities.IElephantEntity;
30 import org.turro.plugin.contacts.IContact;
31 import org.turro.reflection.stub.Stubs;
32 import org.turro.sql.SqlClause;
143 return SqlClause.select(
"sum(l.counts)")
145 .where().equal(
"l.logType", systemLog.
getLogType())
146 .startIf(!Strings.isBlank(systemLog.
getComment()))
147 .and().equal(
"l.comment", systemLog.
getComment())
156 .and().greaterOrEqual(
"l.dateLog", systemLog.
getDateLog())
159 .singleResult(Long.class);
static IContact getUser()
String getGeneratorPath()
void setComment(String comment)
void setEntityName(String entityName)
void setData(byte[] data)
void setLogType(SystemLogType logType)
void setGeneratorPath(String generatorPath)
void setDateLog(Date dateLog)
void setObject(Serializable object)
SystemLogType getLogType()
void setGeneratorName(String generatorName)
void setEntityPath(String entityPath)
void setCounts(int counts)
static IElephantEntity getController(String path)
static LogWrapper type(SystemLogType type)
LogWrapper entityPath(String path)
LogWrapper generatorPath(String path)
LogWrapper entity(Object entity)
LogWrapper generator(IElephantEntity generator)
LogWrapper comment(String comment)
static LogWrapper warning()
LogWrapper entity(IElephantEntity entity)
LogWrapper object(Serializable object)
LogWrapper entityName(String name)
LogWrapper generator(IContact from)
LogWrapper stub(Object entity)
LogWrapper data(byte[] data)
static LogWrapper severe()
LogWrapper date(Date date)
LogWrapper generatorName(String name)
LogWrapper(SystemLogType type)