public interface LoadResultListener
| Modifier and Type | Method and Description |
|---|---|
void |
addError(LoadingError error) |
void |
addErrorCount(int number)
Method to add to the the error count for a listener
|
void |
addErrorRecordCount(int number)
Method to add to the the error record count for a listener
|
void |
addOperationRecordCount(Operation op,
int i) |
void |
addProcessedRecordCount(Operation op,
int i) |
void |
addSubmittedRowCount(int number)
Adds the number of submitted rows
|
int |
getErrorCount()
method to get the total number of errors
|
int |
getErrorRecordCount()
method to get the total number of error records
|
int |
getSubmittedRowCount()
Gets the number of submitted row
|
boolean |
needErrors() |
boolean |
needSuccessRecords() |
void |
recordProvided(Operation op,
Object[] record) |
void |
resetErrorCount()
Method to reset the error count back to zero
|
void |
resetErrorRecordCount()
Method to reset the errorRecordCount back to zero
|
void |
resetSubmittedRowCount()
Resets submitted row count
|
boolean |
throwOnError() |
boolean needSuccessRecords()
void recordProvided(Operation op, Object[] record)
op - Operation requestedrecord - Data submitted for processingvoid addProcessedRecordCount(Operation op, int i)
op - Operation requestedi - number of rows that had been processedvoid addOperationRecordCount(Operation op, int i)
op - Operation requestedi - number of rows that had been affected by a given operationboolean needErrors()
void addError(LoadingError error)
error - information about error that was encounteredboolean throwOnError()
void addErrorCount(int number)
number - the number of errorsvoid resetErrorCount()
int getErrorCount()
void addErrorRecordCount(int number)
number - the number of error recordsvoid resetErrorRecordCount()
int getErrorRecordCount()
void resetSubmittedRowCount()
void addSubmittedRowCount(int number)
number - the number of submitted rowint getSubmittedRowCount()
Copyright © 2017. All rights reserved.