use of javax.jcr.query.qom.QueryObjectModel 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.QueryObjectModel 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.QueryObjectModel 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.QueryObjectModel 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 } });
}
use of javax.jcr.query.qom.QueryObjectModel in project jackrabbit by apache.
the class NodeLocalNameTest method testWeakReferenceLiteral.
public void testWeakReferenceLiteral() throws RepositoryException, NotExecutableException {
ensureMixinType(node1, mixReferenceable);
superuser.save();
Value literal = superuser.getValueFactory().createValue(node1, true);
QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_OPERATOR_EQUAL_TO, literal);
checkQOM(qom, new Node[] {});
}
Aggregations