public class InsertValidationResponse extends Object
InsertValidationResponse.InsertError
objects if there is any failure during insertion.| Modifier and Type | Class and Description |
|---|---|
static class |
InsertValidationResponse.InsertError
Wraps the row content and exception when there is a failure
|
| Constructor and Description |
|---|
InsertValidationResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(InsertValidationResponse.InsertError error)
Add an insertion error to the error list
|
int |
getErrorRowCount()
Get the number of erroneous row count
|
List<InsertValidationResponse.InsertError> |
getInsertErrors()
Get the list of insertion errors, the list is empty if no error
|
boolean |
hasErrors()
Check whether there is any error during insertion
|
public boolean hasErrors()
public List<InsertValidationResponse.InsertError> getInsertErrors()
public int getErrorRowCount()
public void addError(InsertValidationResponse.InsertError error)
error - InsertValidationResponse.InsertError object which contains the row content and exceptionCopyright © 2023. All rights reserved.