类 SqlExecuteTrace
- java.lang.Object
-
- org.sagacity.sqltoy.config.model.SqlExecuteTrace
-
- 所有已实现的接口:
Serializable
public class SqlExecuteTrace extends Object implements Serializable
- 版本:
- v1.0,Date:2018年3月24日
- 作者:
- zhongxuchen
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 SqlExecuteTrace(String id, String type, boolean isPrint)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddLog(String topic, String content, Object... paramsValue)voidaddSqlLog(String topic, String sql, Object... paramsValue)StringgetDialect()List<SqlExecuteLog>getExecuteLogs()longgetExecuteTime()StringgetId()LonggetStart()StringgetType()StringgetUid()booleanisError()booleanisOverTime()booleanisPrint()voidsetDialect(String dialect)voidsetError(String errorMsg)voidsetId(String id)voidsetOverTime(boolean overTime)voidsetType(String type)
-
-
-
方法详细资料
-
isPrint
public boolean isPrint()
- 返回:
- the isPrint
-
getStart
public Long getStart()
- 返回:
- the start
-
getExecuteTime
public long getExecuteTime()
-
getId
public String getId()
- 返回:
- the id
-
setId
public void setId(String id)
- 参数:
id- the id to set
-
getType
public String getType()
- 返回:
- the type
-
setType
public void setType(String type)
- 参数:
type- the type to set
-
getExecuteLogs
public List<SqlExecuteLog> getExecuteLogs()
- 返回:
- the sqlToyResults
-
addSqlLog
public void addSqlLog(String topic, String sql, Object... paramsValue)
- 参数:
topic-sql-paramsValue-
-
addLog
public void addLog(String topic, String content, Object... paramsValue)
- 参数:
topic-content-paramsValue-
-
isError
public boolean isError()
- 返回:
- the error
-
setError
public void setError(String errorMsg)
- 参数:
errorMsg- the error to set
-
getUid
public String getUid()
- 返回:
- the uid
-
isOverTime
public boolean isOverTime()
- 返回:
- the overTime
-
setOverTime
public void setOverTime(boolean overTime)
- 参数:
overTime- the overTime to set
-
getDialect
public String getDialect()
-
setDialect
public void setDialect(String dialect)
-
-