类 UpdateResult
- java.lang.Object
-
- com.mysql.cj.xdevapi.UpdateResult
-
- 所有已实现的接口:
QueryResult,Result
- 直接已知子类:
AddResultImpl,InsertResultImpl,SqlUpdateResult
public class UpdateResult extends Object implements Result
A result from a statement that doesn't return a set of rows.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected StatementExecuteOkok
-
构造器概要
构造器 构造器 说明 UpdateResult(StatementExecuteOk ok)Create a new result.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longgetAffectedItemsCount()Get the count of affected items from manipulation statements.Iterator<Warning>getWarnings()Get warnings generated during statement execution.intgetWarningsCount()Get the number of warnings generated during statement execution.
-
-
-
字段详细资料
-
ok
protected StatementExecuteOk ok
-
-
构造器详细资料
-
UpdateResult
public UpdateResult(StatementExecuteOk ok)
Create a new result.- 参数:
ok- the response from the server
-
-
方法详细资料
-
getAffectedItemsCount
public long getAffectedItemsCount()
从接口复制的说明:ResultGet the count of affected items from manipulation statements. This method forces internal buffering of the result.- 指定者:
getAffectedItemsCount在接口中Result- 返回:
- count
-
getWarningsCount
public int getWarningsCount()
从接口复制的说明:ResultGet the number of warnings generated during statement execution. This method forces internal buffering of the result.- 指定者:
getWarningsCount在接口中Result- 返回:
- number of warnings
-
getWarnings
public Iterator<Warning> getWarnings()
从接口复制的说明:ResultGet warnings generated during statement execution. This method forces internal buffering of the result.- 指定者:
getWarnings在接口中Result- 返回:
- iterator over warnings
-
-