public class DefaultUpdateSummary extends Object implements UpdateSummary
UpdateSummary.| Constructor and Description |
|---|
DefaultUpdateSummary(Integer insertedRows,
Integer updatedRows,
Integer deletedRows,
Iterable<Object> generatedKeys) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Integer> |
getDeletedRows()
Gets the number of deleted rows, or null if this number is unknown.
|
Optional<Iterable<Object>> |
getGeneratedKeys()
Gets a collection of keys that was generated as part of the update -
typically because INSERTs where executed on an underlying database which
generated record IDs for each insert.
|
Optional<Integer> |
getInsertedRows()
Gets the number of inserted rows, or null if this number is unknown.
|
Optional<Integer> |
getUpdatedRows()
Gets the number of updated rows, or null if this number is unknown.
|
static UpdateSummary |
unknownUpdates()
Gets an
UpdateSummary object to return when the extent of the
updates are unknown. |
public static UpdateSummary unknownUpdates()
UpdateSummary object to return when the extent of the
updates are unknown.UpdateSummary object without any knowledge of updates
performed.public Optional<Integer> getInsertedRows()
UpdateSummarygetInsertedRows in interface UpdateSummarypublic Optional<Integer> getUpdatedRows()
UpdateSummarygetUpdatedRows in interface UpdateSummarypublic Optional<Integer> getDeletedRows()
UpdateSummarygetDeletedRows in interface UpdateSummarypublic Optional<Iterable<Object>> getGeneratedKeys()
UpdateSummarygetGeneratedKeys in interface UpdateSummaryCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.