Top Description Fields Constructors Methods
com.mysql.cj.protocol.x

public Class StatementExecuteOk

extends Object
implements ProtocolEntity, Result
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.Result, com.mysql.cj.QueryResult, com.mysql.cj.protocol.ProtocolEntity
Imports
java.util.ArrayList, .Collections, .Iterator, .List, java.util.stream.Collectors, com.mysql.cj.protocol.ProtocolEntity, .Warning, com.mysql.cj.xdevapi.Result, .WarningImpl

ProtocolEntity representing a StatementExecuteOk message.

Field Summary

Modifier and TypeField and Description
private List<String>
private Long
private long
private List<Warning>

Constructor Summary

AccessConstructor and Description
public
public
StatementExecuteOk(long rowsAffected, Long lastInsertId, List<String> generatedIds, List<Warning> warnings)

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 List<String>
public Long
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

generatedIdsback to summary
private List<String> generatedIds
lastInsertIdback to summary
private Long lastInsertId
rowsAffectedback to summary
private long rowsAffected
warningsback to summary
private List<Warning> warnings

Constructor Detail

StatementExecuteOkback to summary
public StatementExecuteOk()
StatementExecuteOkback to summary
public StatementExecuteOk(long rowsAffected, Long lastInsertId, List<String> generatedIds, List<Warning> warnings)

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
getGeneratedIdsback to summary
public List<String> getGeneratedIds()
getLastInsertIdback to summary
public Long getLastInsertId()
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