M
- Expected model type by the Loader
that uses this
DataReader
B
- Intermediate type before getting to M, allowing
createReturnData(Object, Object)
to further modify the dataD
- Incoming data type from the DataProxy
public abstract class AbstractAutoBeanReader<M,B,D> extends Object implements DataReader<M,D>
AutoBean
s.Constructor and Description |
---|
AbstractAutoBeanReader(AutoBeanFactory factory,
Class<B> rootBeanType)
Creates a new loader.
|
Modifier and Type | Method and Description |
---|---|
protected M |
createReturnData(Object loadConfig,
B records)
Responsible for the object being returned by the reader.
|
M |
read(Object loadConfig,
D data)
Reads the raw data and returns the typed data.
|
protected abstract Splittable |
readSplittable(Object loadConfig,
D data)
Implemented by subclasses to provide a
Splittable based on the
incoming data. |
public M read(Object loadConfig, D data)
DataReader
read
in interface DataReader<M,D>
loadConfig
- the load config informationdata
- the data to readprotected M createReturnData(Object loadConfig, B records)
loadConfig
- the load configrecords
- the list of modelsCopyright © 2018. All rights reserved.