public class DBAccount extends AbstractModel
Constructor and Description |
---|
DBAccount() |
DBAccount(DBAccount 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 |
---|---|
String |
getCreateTime()
Get 创建时间
|
Long |
getDelayThresh()
Get 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
|
String |
getDescription()
Get 用户备注信息
|
String |
getHost()
Get 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)
|
Long |
getReadOnly()
Get 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
|
String |
getUpdateTime()
Get 最后更新时间
|
String |
getUserName()
Get 用户名
|
void |
setCreateTime(String CreateTime)
Set 创建时间
|
void |
setDelayThresh(Long DelayThresh)
Set 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。
|
void |
setDescription(String Description)
Set 用户备注信息
|
void |
setHost(String Host)
Set 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)
|
void |
setReadOnly(Long ReadOnly)
Set 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。
|
void |
setUpdateTime(String UpdateTime)
Set 最后更新时间
|
void |
setUserName(String UserName)
Set 用户名
|
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 DBAccount()
public DBAccount(DBAccount source)
public String getUserName()
public void setUserName(String UserName)
UserName
- 用户名public String getHost()
public void setHost(String Host)
Host
- 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%)public String getDescription()
public void setDescription(String Description)
Description
- 用户备注信息public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- 创建时间public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- 最后更新时间public Long getReadOnly()
public void setReadOnly(Long ReadOnly)
ReadOnly
- 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。public Long getDelayThresh()
public void setDelayThresh(Long DelayThresh)
DelayThresh
- 如果备机延迟超过本参数设置值,系统将认为备机发生故障
建议该参数值大于10。当ReadOnly选择1、2时该参数生效。Copyright © 2021. All rights reserved.