private static class XmlImport.Relation
extends java.lang.Object
DataSet
relation until the full set of tables is
read.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
child
The name of the child buffer.
|
private java.util.List<java.lang.String> |
childFields
The list of child's fields involved in this relation.
|
private java.lang.String |
fields
The set of fields for this relation.
|
private java.lang.String |
name
The relation name.
|
private boolean |
nested
Flags the nested relations.
|
private java.lang.String |
parent
The name of the parent buffer.
|
private java.util.List<java.lang.String> |
parentFields
The lists of parent's fields involved in this relation.
|
Constructor and Description |
---|
Relation(java.lang.String name,
P2JIndex parentIndex,
boolean nested)
The constructor initializes the internal data.
|
Relation(java.lang.String name,
java.lang.String parent,
java.lang.String child,
java.lang.String fields,
boolean nested)
The constructor initializes the internal data.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildField(java.lang.String field)
Adds a new field to be used on child side of the relation.
|
java.lang.String |
getFields()
Get the set of fields which drives this relation.
|
void |
setChild(java.lang.String xpath)
Sets the name of the child buffer.
|
private final java.lang.String name
private final java.lang.String parent
private java.lang.String child
private final java.lang.String fields
private final boolean nested
private final java.util.List<java.lang.String> childFields
private final java.util.List<java.lang.String> parentFields
public Relation(java.lang.String name, java.lang.String parent, java.lang.String child, java.lang.String fields, boolean nested)
name
- The relation name.parent
- The name of the parent buffer.child
- The name of the child buffer.fields
- The set of fields for this relation.nested
- true
for nested relations.public Relation(java.lang.String name, P2JIndex parentIndex, boolean nested)
name
- The relation name.parentIndex
- The name of the parent table in this relation.nested
- true
for nested relations.public void setChild(java.lang.String xpath)
"..//"
prefix is dropped.xpath
- The name of the child buffer, as read from XML.public void addChildField(java.lang.String field)
field
- The name of the field.public java.lang.String getFields()