public class MysqlServerStatusInfo
extends java.lang.Object
说明:MysqlServerStatusInfo 类是线程安全的,可在多个线程中使用同一个实例。
| 构造器和说明 |
|---|
MysqlServerStatusInfo(int serverStatusFlags)
Mysql 服务端状态信息。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isAutoCommit()
判断当前 Mysql 连接是否为自动提交事务。
|
boolean |
isInReadonlyTransaction()
判断当前 Mysql 连接在服务端是否处于只读事务中。
|
boolean |
isInTransaction()
判断当前 Mysql 连接在服务端是否处于事务中。
|
boolean |
isQueryNoGoodIndexUsed()
判断当前 Mysql 连接执行的 SQL 查询语句是否未使用最优的索引。
|
boolean |
isQueryNoIndexUsed()
判断当前 Mysql 连接执行的 SQL 查询语句是否未使用索引。
|
boolean |
isSlow()
判断当前 Mysql 连接执行的 SQL 语句是否为慢查。
|
java.lang.String |
toString() |
public MysqlServerStatusInfo(int serverStatusFlags)
serverStatusFlags - Mysql 服务端状态信息public boolean isAutoCommit()
public boolean isInTransaction()
public boolean isInReadonlyTransaction()
public boolean isQueryNoGoodIndexUsed()
public boolean isQueryNoIndexUsed()
public boolean isSlow()
public java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2019. All Rights Reserved.