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 boolean |
active
Flag indicating if the relation is active.
|
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 boolean |
fkHidden
Flags the FOREIHN-KEY-HIDDEN relations.
|
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.
|
private boolean |
recursive |
| Constructor and Description |
|---|
Relation(java.lang.String name,
P2JIndex parentIndex,
boolean nested,
boolean fkHidden,
boolean recursive,
boolean active)
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,
boolean fkHidden,
boolean recursive,
boolean active)
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 boolean fkHidden
private final boolean recursive
private final java.util.List<java.lang.String> childFields
private final java.util.List<java.lang.String> parentFields
private final boolean active
public Relation(java.lang.String name,
java.lang.String parent,
java.lang.String child,
java.lang.String fields,
boolean nested,
boolean fkHidden,
boolean recursive,
boolean active)
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.fkHidden - true for foreign-key-hidden relationsrecursive - true for recursive relationsactive - true for active relationspublic Relation(java.lang.String name,
P2JIndex parentIndex,
boolean nested,
boolean fkHidden,
boolean recursive,
boolean active)
name - The relation name.parentIndex - The name of the parent table in this relation.nested - true for nested relations.fkHidden - true for foreign-key-hidden relations.recursive - true for recursive relations.active - true for active relationspublic void setChild(java.lang.String xpath)
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()