void appendSQLAsJoin(SQLStatement stat, Query<T> q) {
		if (outerJoin) {
			stat.appendSQL(" LEFT OUTER JOIN ");
		} else {
			stat.appendSQL(" INNER JOIN ");
		}
		appendSQL(stat);
		if (!joinConditions.isEmpty()) {
			stat.appendSQL(" ON ");
			for (Token token : joinConditions) {
				token.appendSQL(stat, q);
				stat.appendSQL(" ");
			}
		}
	}