Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class UpdateResult

extends Object
implements Result
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.Result, com.mysql.cj.QueryResult
Known Direct Subclasses
com.mysql.cj.xdevapi.AddResultImpl, com.mysql.cj.xdevapi.InsertResultImpl, com.mysql.cj.xdevapi.SqlUpdateResult
Imports
java.util.Iterator, com.mysql.cj.protocol.x.StatementExecuteOk

A result from a statement that doesn't return a set of rows.

Field Summary

Modifier and TypeField and Description
protected StatementExecuteOk

Constructor Summary

AccessConstructor and Description
public
UpdateResult(StatementExecuteOk
the response from the server
ok
)

Create a new result.

Method Summary

Modifier and TypeMethod and Description
public long
getAffectedItemsCount()

Implements com.mysql.cj.xdevapi.Result.getAffectedItemsCount.

Get the count of affected items from manipulation statements.

public Iterator<Warning>
getWarnings()

Implements com.mysql.cj.xdevapi.Result.getWarnings.

Get warnings generated during statement execution.

public int
getWarningsCount()

Implements com.mysql.cj.xdevapi.Result.getWarningsCount.

Get the number of warnings generated during statement execution.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

okback to summary
protected StatementExecuteOk ok

Constructor Detail

UpdateResultback to summary
public UpdateResult(StatementExecuteOk ok)

Create a new result.

Parameters
ok:StatementExecuteOk

the response from the server

Method Detail

getAffectedItemsCountback to summary
public long getAffectedItemsCount()

Implements com.mysql.cj.xdevapi.Result.getAffectedItemsCount.

Doc from com.mysql.cj.xdevapi.Result.getAffectedItemsCount.

Get the count of affected items from manipulation statements. This method forces internal buffering of the result.

Returns:long

count

Annotations
@Override
getWarningsback to summary
public Iterator<Warning> getWarnings()

Implements com.mysql.cj.xdevapi.Result.getWarnings.

Doc from com.mysql.cj.xdevapi.Result.getWarnings.

Get warnings generated during statement execution. This method forces internal buffering of the result.

Returns:Iterator<Warning>

iterator over warnings

Annotations
@Override
getWarningsCountback to summary
public int getWarningsCount()

Implements com.mysql.cj.xdevapi.Result.getWarningsCount.

Doc from com.mysql.cj.xdevapi.Result.getWarningsCount.

Get the number of warnings generated during statement execution. This method forces internal buffering of the result.

Returns:int

number of warnings

Annotations
@Override