/** * Define the join as using an equi-join criteria by specifying the * expression equating two columns. Each column reference must be * qualified with the appropriate table name or alias. * * @param columnEqualExpression * the equality expression between the two tables; may not be * null * @return the query builder instance, for method chaining purposes * @throws IllegalArgumentException * if the supplied expression is not an equality expression */ public QueryBuilder on(String columnEqualExpression) { String[] parts = columnEqualExpression.split("="); if (parts.length != 2) { throw new IllegalArgumentException("Expected equality expression for columns, but found \"" + columnEqualExpression + "\""); } return createJoin(new EquiJoinCondition(column(parts[0]), column(parts[1]))); }
sn2 = getSelectorName(sn2); res = new EquiJoinCondition(sn1, p1, sn2, p2);