|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.parsers.common.processor.MasterDetailRecord
public class MasterDetailRecord
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.
MasterDetailProcessor,
RowProcessor,
AbstractParser| Constructor Summary | |
|---|---|
MasterDetailRecord()
|
|
| Method Summary | |
|---|---|
void |
clear()
Empties the detail rows and sets the master row to null. |
MasterDetailRecord |
clone()
|
List<Object[]> |
getDetailRows()
Returns the detail rows which are associated with the master row |
Object[] |
getMasterRow()
Returns the master row as identified by a MasterDetailProcessor |
void |
setDetailRows(List<Object[]> detailRows)
Sets the detail rows associated with the master row |
void |
setMasterRow(Object[] masterRow)
Sets the master row data. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterDetailRecord()
| Method Detail |
|---|
public Object[] getMasterRow()
MasterDetailProcessor
public void setMasterRow(Object[] masterRow)
masterRow - the data of a master rowpublic List<Object[]> getDetailRows()
public void setDetailRows(List<Object[]> detailRows)
detailRows - the list of rows associated with the master rowpublic void clear()
public MasterDetailRecord clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||