public class ParentToChildConnection
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ParentToChildConnection(java.lang.String parentAttribute,
boolean parentConstant,
java.lang.String operator,
java.lang.String childAttribute,
boolean childConstant)
Creates a new parent-to-child-connection to use in a hierarchical query.
|
|
ParentToChildConnection(java.lang.String parentAttribute,
java.lang.String operator,
java.lang.String childAttribute)
Creates a new parent-to-child-connection to use in a hierarchical query.
|
|
ParentToChildConnection(java.lang.String attribute,
java.lang.String operator,
java.lang.String value,
boolean childAttribute)
Creates a new condition to compare a parent or child attribute with a constant.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChildAttribute()
Gets the attribute of the child-tuples to use to join parent-tuples with.
|
java.lang.String |
getOperator()
Gets the operator used to join parent- and child-tuples.
|
java.lang.String |
getParentAttribute()
Gets the attribute of the parent-tuples to use to join child-tuples with.
|
boolean |
isChildAttributeConstant()
Gets whether the attribute for the child tuples is a constant and should therefore not be
prefixed.
|
boolean |
isParentAttributeConstant()
Gets whether the attribute for the parent tuples is a constant and should therefore not be
prefixed.
|
public ParentToChildConnection(java.lang.String parentAttribute,
java.lang.String operator,
java.lang.String childAttribute)
NULL! In this case the join may fail since NULL = NULL is
false so the corresponding tuple will not be in the join and therefore in the
recursion step. In this case you will need to add two additional parent child connections using
<parentAttribute>, "IS", "NULL", false and
<childAttribute>, "IS", NULL, trueparentAttribute - The attribute of the parent-tuples to use in the join. If the columns of
this attribute and the child attribute are nullable, you will need to add two
additional parent to child connections for comparing each attribute with the constant
NULL.operator - The operator used to join parent- and child-tuples.childAttribute - The attribute of the parent-tuples to use in the join. If the columns of
this attribute and the child attribute are nullable, you will need to add two
additional parent to child connections for comparing each attribute with the constant
NULL.public ParentToChildConnection(java.lang.String attribute,
java.lang.String operator,
java.lang.String value,
boolean childAttribute)
attribute - The attribute of either the parent or the child tuples to compare with a
constant.operator - The operator used to compare the attribute with a constant value.value - The (constant) value with which to compare the attribute.childAttribute - Whether the attribute is a child attribute (or a parent attribute). This
is used to prefix the attribute appropriately so that it refers to the right table.protected ParentToChildConnection(java.lang.String parentAttribute,
boolean parentConstant,
java.lang.String operator,
java.lang.String childAttribute,
boolean childConstant)
parentAttribute - The attribute of the parent-tuples to use in the join.parentConstant - Whether the attribute for the parent tuples is a constant and should
therefore not be prefixed. In this case it selects from the child tuples.operator - The operator used to join parent- and child-tuples.childAttribute - The attribute of the parent-tuples to use in the join.childConstant - Whether the attribute for the child tuples is a constant and should
therefore not be prefixed. In this case it selects from the parent tuples.public java.lang.String getParentAttribute()
public boolean isParentAttributeConstant()
public java.lang.String getOperator()
public java.lang.String getChildAttribute()
public boolean isChildAttributeConstant()