public abstract class AbstractBusinessLogger extends Object implements BusinessLogger
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
m_LastOrdinal
最后生成的ID补充序数
|
protected long |
m_LastTime
最后生成的ID时间
|
protected String |
m_Name
名称
|
| 构造器和说明 |
|---|
AbstractBusinessLogger(String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
static BusinessLogVo |
createVoById(String id) |
String |
genId(String objectId,
long timestamp) |
cn.weforward.common.ResultPage<BusinessLog> |
getLogs(String target)
取得对象的相关日志
|
String |
getName()
日志记录器名(标识)
|
abstract String |
getServerId() |
long |
nextTimestamp() |
String |
toId(String objectId,
long time) |
protected abstract void |
writeLog(BusinessLog log)
写日志
|
void |
writeLog(String id,
String author,
String action,
String what)
写日志
|
void |
writeLog(String id,
String author,
String action,
String what,
String note)
写日志
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearchLogsprotected String m_Name
protected long m_LastTime
protected int m_LastOrdinal
public AbstractBusinessLogger(String name)
public String getName()
BusinessLoggergetName 在接口中 cn.weforward.common.NameablegetName 在接口中 BusinessLoggerpublic void writeLog(String id, String author, String action, String what)
BusinessLoggerwriteLog 在接口中 BusinessLoggerid - 对象IDauthor - 操作者action - 动作what - 什么public void writeLog(String id, String author, String action, String what, String note)
BusinessLoggerwriteLog 在接口中 BusinessLoggerid - 对象IDauthor - 操作者action - 动作what - 什么note - 用户描述public static BusinessLogVo createVoById(String id)
public long nextTimestamp()
public abstract String getServerId()
protected abstract void writeLog(BusinessLog log)
log - 日志public cn.weforward.common.ResultPage<BusinessLog> getLogs(String target)
BusinessLoggergetLogs 在接口中 BusinessLoggertarget - 对象IDCopyright © 2021. All rights reserved.