public class BatchValidator extends Object implements RecordValidator<Batch>
RecordValidator.
A batch of records is valid if all its records are valid.
A batch of records is invalid if one of its records is invalid.
| Constructor and Description |
|---|
BatchValidator(RecordValidator recordValidator)
Create a batch validator.
|
public BatchValidator(RecordValidator recordValidator)
recordValidator - the delegate RecordValidatorpublic Batch processRecord(Batch batch) throws RecordValidationException
processRecord in interface RecordProcessor<Batch,Batch>processRecord in interface RecordValidator<Batch>batch - the batch to validate.RecordValidationException - thrown if the batch is not valid and should be rejectedCopyright © 2015. All Rights Reserved.