public class SqlLogItem extends AbstractModel
Constructor and Description |
---|
SqlLogItem() |
SqlLogItem(SqlLogItem source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAffectRowNum()
Get 影响行数。
|
String |
getClient()
Get 执行本条sql的客户端IP+端口。
|
String |
getDbName()
Get 数据库名称。
|
Long |
getOffset()
Get 本条日志在消息队列中的偏移量。
|
Long |
getResultCode()
Get Sql返回码,0为成功。
|
Long |
getSelectRowNum()
Get 返回的数据行数。
|
String |
getSql()
Get 执行的sql语句。
|
Long |
getTimeCostMs()
Get Sql耗时,单位为毫秒。
|
Long |
getTimestamp()
Get Sql执行时间戳。
|
String |
getUser()
Get 执行本条sql的用户。
|
void |
setAffectRowNum(Long AffectRowNum)
Set 影响行数。
|
void |
setClient(String Client)
Set 执行本条sql的客户端IP+端口。
|
void |
setDbName(String DbName)
Set 数据库名称。
|
void |
setOffset(Long Offset)
Set 本条日志在消息队列中的偏移量。
|
void |
setResultCode(Long ResultCode)
Set Sql返回码,0为成功。
|
void |
setSelectRowNum(Long SelectRowNum)
Set 返回的数据行数。
|
void |
setSql(String Sql)
Set 执行的sql语句。
|
void |
setTimeCostMs(Long TimeCostMs)
Set Sql耗时,单位为毫秒。
|
void |
setTimestamp(Long Timestamp)
Set Sql执行时间戳。
|
void |
setUser(String User)
Set 执行本条sql的用户。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SqlLogItem()
public SqlLogItem(SqlLogItem source)
public Long getOffset()
public void setOffset(Long Offset)
Offset
- 本条日志在消息队列中的偏移量。public String getUser()
public void setUser(String User)
User
- 执行本条sql的用户。public String getClient()
public void setClient(String Client)
Client
- 执行本条sql的客户端IP+端口。public String getDbName()
public void setDbName(String DbName)
DbName
- 数据库名称。public String getSql()
public void setSql(String Sql)
Sql
- 执行的sql语句。public Long getSelectRowNum()
public void setSelectRowNum(Long SelectRowNum)
SelectRowNum
- 返回的数据行数。public Long getAffectRowNum()
public void setAffectRowNum(Long AffectRowNum)
AffectRowNum
- 影响行数。public Long getTimestamp()
public void setTimestamp(Long Timestamp)
Timestamp
- Sql执行时间戳。public Long getTimeCostMs()
public void setTimeCostMs(Long TimeCostMs)
TimeCostMs
- Sql耗时,单位为毫秒。public Long getResultCode()
public void setResultCode(Long ResultCode)
ResultCode
- Sql返回码,0为成功。Copyright © 2021. All rights reserved.