use of javax.jcr.query.qom.JoinCondition in project jackrabbit by apache.
the class EquiJoinConditionTest method testRightOuterJoin2.
public void testRightOuterJoin2() throws RepositoryException {
JoinCondition c = qf.equiJoinCondition(LEFT, propertyName2, RIGHT, propertyName1);
QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_JOIN_TYPE_RIGHT_OUTER, c);
checkQOM(qom, new Node[][] { { n2, n1 }, { n2, n2 } });
}
use of javax.jcr.query.qom.JoinCondition in project jackrabbit by apache.
the class EquiJoinConditionTest method testLeftOuterJoin1.
public void testLeftOuterJoin1() throws RepositoryException {
JoinCondition c = qf.equiJoinCondition(LEFT, propertyName1, RIGHT, propertyName2);
QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_JOIN_TYPE_LEFT_OUTER, c);
checkQOM(qom, new Node[][] { { n1, n2 }, { n2, n2 } });
}
use of javax.jcr.query.qom.JoinCondition in project jackrabbit by apache.
the class EquiJoinConditionTest method testInnerJoin1.
public void testInnerJoin1() throws RepositoryException {
JoinCondition c = qf.equiJoinCondition(LEFT, propertyName1, RIGHT, propertyName2);
QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_JOIN_TYPE_INNER, c);
checkQOM(qom, new Node[][] { { n1, n2 }, { n2, n2 } });
}
use of javax.jcr.query.qom.JoinCondition in project jackrabbit by apache.
the class EquiJoinConditionTest method testInnerJoin2.
public void testInnerJoin2() throws RepositoryException {
JoinCondition c = qf.equiJoinCondition(LEFT, propertyName2, RIGHT, propertyName1);
QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_JOIN_TYPE_INNER, c);
checkQOM(qom, new Node[][] { { n2, n1 }, { n2, n2 } });
}
use of javax.jcr.query.qom.JoinCondition in project jackrabbit by apache.
the class EquiJoinConditionTest method testRightOuterJoin1.
public void testRightOuterJoin1() throws RepositoryException {
JoinCondition c = qf.equiJoinCondition(LEFT, propertyName1, RIGHT, propertyName2);
QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_JOIN_TYPE_RIGHT_OUTER, c);
checkQOM(qom, new Node[][] { { null, n1 }, { n1, n2 }, { n2, n2 } });
}
Aggregations