public class UpdateResult extends Object
The number of rows updated is available with getUpdated()
and any generated
keys are available with getKeys()
.
Constructor and Description |
---|
UpdateResult()
Default constructor
|
UpdateResult(int updated,
JsonArray keys)
Constructor
|
UpdateResult(JsonObject json)
Constructor from JSON
|
UpdateResult(UpdateResult other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
JsonArray |
getKeys()
Get any generated keys
|
int |
getUpdated()
Get the number of rows updated
|
int |
hashCode() |
UpdateResult |
setKeys(JsonArray keys) |
UpdateResult |
setUpdated(int updated) |
JsonObject |
toJson()
Convert to JSON
|
public UpdateResult()
public UpdateResult(UpdateResult other)
other
- the result to copypublic UpdateResult(JsonObject json)
json
- the jsonpublic UpdateResult(int updated, JsonArray keys)
updated
- number of rows updatedkeys
- any generated keyspublic JsonObject toJson()
public int getUpdated()
public UpdateResult setUpdated(int updated)
public JsonArray getKeys()
public UpdateResult setKeys(JsonArray keys)
Copyright © 2022 Eclipse. All rights reserved.