PropertyValue propValue = qomFactory.propertyValue("node", propertyName);
Literal literal = qomFactory.literal(propertyValueObj);
constraint = qomFactory.comparison(propValue, operator, literal);
}
Column[] columns = new Column[2];
columns[0] = qomFactory.column("node", "notion:booleanProperty", "notion:booleanProperty");
columns[1] = qomFactory.column("node", "notion:booleanProperty2", "notion:booleanProperty2");
Ordering[] orderings = null;
// Build and execute the query ...
Query query = qomFactory.createQuery(selector, constraint, orderings, columns);