Package com.mysql.cj.xdevapi
Class UpdateResult
java.lang.Object
com.mysql.cj.xdevapi.UpdateResult
- All Implemented Interfaces:
QueryResult
,Result
- Direct Known Subclasses:
AddResultImpl
,InsertResultImpl
,SqlUpdateResult
public class UpdateResult extends java.lang.Object implements Result
A result from a statement that doesn't return a set of rows.
-
Field Summary
Fields Modifier and Type Field Description protected StatementExecuteOk
ok
-
Constructor Summary
Constructors Constructor Description UpdateResult(StatementExecuteOk ok)
Create a new result. -
Method Summary
Modifier and Type Method Description long
getAffectedItemsCount()
Get the count of affected items from manipulation statements.java.util.Iterator<Warning>
getWarnings()
Get warnings generated during statement execution.int
getWarningsCount()
Get the number of warnings generated during statement execution.
-
Field Details
-
Constructor Details
-
UpdateResult
Create a new result.- Parameters:
ok
- the response from the server
-
-
Method Details
-
getAffectedItemsCount
public long getAffectedItemsCount()Description copied from interface:Result
Get the count of affected items from manipulation statements. This method forces internal buffering of the result.- Specified by:
getAffectedItemsCount
in interfaceResult
- Returns:
- count
-
getWarningsCount
public int getWarningsCount()Description copied from interface:Result
Get the number of warnings generated during statement execution. This method forces internal buffering of the result.- Specified by:
getWarningsCount
in interfaceResult
- Returns:
- number of warnings
-
getWarnings
Description copied from interface:Result
Get warnings generated during statement execution. This method forces internal buffering of the result.- Specified by:
getWarnings
in interfaceResult
- Returns:
- iterator over warnings
-