checkResultOrder(qom.execute(), SELECTOR_NAMES, new Node[][]{{n1, n2}, {n2, n2}});
}
protected QueryObjectModel createQuery(Ordering[] orderings)
throws RepositoryException {
JoinCondition c = qf.equiJoinCondition(
LEFT, propertyName1, RIGHT, propertyName2);
QueryObjectModel qom = createQuery(
QueryObjectModelConstants.JCR_JOIN_TYPE_INNER, c);
return qf.createQuery(qom.getSource(), qom.getConstraint(),
orderings, qom.getColumns());