T - the type of objects this reader will read.public class HibernateBatchReader<T> extends AbstractBatchReader
batchSize, currentRecordNumber, delegate| Constructor and Description |
|---|
HibernateBatchReader(int batchSize,
org.hibernate.SessionFactory sessionFactory,
String query)
Create a hibernate batch reader.
|
| Modifier and Type | Method and Description |
|---|---|
Batch |
readNextRecord() |
hasNextRecordclose, getDataSourceName, getTotalRecords, openpublic HibernateBatchReader(int batchSize,
org.hibernate.SessionFactory sessionFactory,
String query)
batchSize - the batch sizesessionFactory - a pre-configured hibernate session factoryquery - the HQL query to use to fetch datapublic Batch readNextRecord() throws RecordReadingException
readNextRecord in interface RecordReaderreadNextRecord in class AbstractBatchReaderRecordReadingExceptionCopyright © 2017. All Rights Reserved.