Class MasterDetailRecord
java.lang.Object
com.univocity.parsers.common.processor.MasterDetailRecord
- All Implemented Interfaces:
Cloneable
An utility class to store data of a master row and its detail records.
Instances of this class are typically generated by an instance of
AbstractParser during the parsing of an input using a MasterDetailProcessor.- Author:
- Univocity Software Pty Ltd - parsers@univocity.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Empties the detail rows and sets the master row to null.clone()Returns the detail rows which are associated with the master rowObject[]Returns the master row as identified by aMasterDetailProcessorvoidsetDetailRows(List<Object[]> detailRows) Sets the detail rows associated with the master rowvoidsetMasterRow(Object[] masterRow) Sets the master row data.
-
Constructor Details
-
MasterDetailRecord
public MasterDetailRecord()
-
-
Method Details
-
getMasterRow
Returns the master row as identified by aMasterDetailProcessor- Returns:
- the master row
-
setMasterRow
Sets the master row data.- Parameters:
masterRow- the data of a master row
-
getDetailRows
-
setDetailRows
-
clear
public void clear()Empties the detail rows and sets the master row to null. -
clone
-