io.github.benas.easybatch.tutorials.beanValidation
Class ProductProcessor
java.lang.Object
io.github.benas.easybatch.core.api.AbstractRecordProcessor<Product>
io.github.benas.easybatch.tutorials.beanValidation.ProductProcessor
- All Implemented Interfaces:
- RecordProcessor<Product,Object>
public class ProductProcessor
- extends AbstractRecordProcessor<Product>
A product processor that inserts Product objects in a database.
This implementation is kept simple for demonstration purpose. In production environment, you may define a
commit interval to avoid performance issues of committing the transaction after each record insertion.
- Author:
- benas (md.benhassine@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductProcessor
public ProductProcessor()
processRecord
public void processRecord(Product product)
throws Exception
- Throws:
Exception
Copyright © 2014. All Rights Reserved.