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 StatementExecuteOkok -
Constructor Summary
Constructors Constructor Description UpdateResult(StatementExecuteOk ok)Create a new result. -
Method Summary
Modifier and Type Method Description longgetAffectedItemsCount()Get the count of affected items from manipulation statements.java.util.Iterator<Warning>getWarnings()Get warnings generated during statement execution.intgetWarningsCount()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:ResultGet the count of affected items from manipulation statements. This method forces internal buffering of the result.- Specified by:
getAffectedItemsCountin interfaceResult- Returns:
- count
-
getWarningsCount
public int getWarningsCount()Description copied from interface:ResultGet the number of warnings generated during statement execution. This method forces internal buffering of the result.- Specified by:
getWarningsCountin interfaceResult- Returns:
- number of warnings
-
getWarnings
Description copied from interface:ResultGet warnings generated during statement execution. This method forces internal buffering of the result.- Specified by:
getWarningsin interfaceResult- Returns:
- iterator over warnings
-