public static class JoinsExamples.RecJoinSet
extends java.lang.Object
| Constructor and Description |
|---|
RecJoinSet()
Create an empty Joined set of records.
|
RecJoinSet(java.lang.String parent_tbl,
com.netrics.likeit.NetricsRecord parent_rec)
Creat a joined set of records for the given parent record.
|
RecJoinSet(java.lang.String parent_tbl,
com.netrics.likeit.NetricsRecord parent_rec,
java.lang.String[] child_tbl_names,
com.netrics.likeit.NetricsRecord[][] child_tbl_recs)
Creat an initialized Joined set of records.
|
| Modifier and Type | Method and Description |
|---|---|
com.netrics.likeit.NetricsRecord[] |
getChildRecs(java.lang.String child_tbl)
Get an array of the child records for a particular child table.
|
java.lang.String[] |
getChildTbls()
Get an array of the child tables in this joined set.
|
com.netrics.likeit.NetricsRecord |
getParentRec()
Get the parent record.
|
java.lang.String |
getParentTbl()
Get the name of the parent table.
|
void |
setChildRecords(java.lang.String child_tbl,
com.netrics.likeit.NetricsRecord[] child_recs)
Set the list of records for a child table.
|
public RecJoinSet()
public RecJoinSet(java.lang.String parent_tbl,
com.netrics.likeit.NetricsRecord parent_rec)
parent_tbl - the name of the parent table of this join set.parent_rec - the parent record of this join set.public RecJoinSet(java.lang.String parent_tbl,
com.netrics.likeit.NetricsRecord parent_rec,
java.lang.String[] child_tbl_names,
com.netrics.likeit.NetricsRecord[][] child_tbl_recs)
parent_tbl - the name of the parent table of this join set.parent_rec - the parent record of this join set.child_tbl_names - an array of the child table names.child_tbl_recs - a two dimensional array of records,
the first dimension corresponds to child_tbl_names,
the second dimension is the array of records for
that child table. I.e.
child_tbl_records[i] is an array of records for
child table: child_tbl_names[i].public void setChildRecords(java.lang.String child_tbl,
com.netrics.likeit.NetricsRecord[] child_recs)
child_tbl - the name of the child tablechild_recs - an array of child records.public java.lang.String getParentTbl()
public com.netrics.likeit.NetricsRecord getParentRec()
public java.lang.String[] getChildTbls()
public com.netrics.likeit.NetricsRecord[] getChildRecs(java.lang.String child_tbl)
child_tbl - child table to get records from.