MentaBean

Compare Revisions

Ignore whitespace Rev 203 → Rev 204

/trunk/src/main/java/org/mentabean/jdbc/QueryBuilder.java
31,6 → 31,7
*/
public class QueryBuilder {
 
private static final String REGEX = "(AND|OR|\\([\\s]*?\\)|WHERE|HAVING)[\\s]*?$";
private StringBuilder sb = new StringBuilder();
private final AnsiSQLBeanSession session;
private List<Object> paramValues = new ArrayList<Object>();
174,7 → 175,7
}
private void applyRegex() {
remove("(AND|OR|\\([\\s]*?\\)|WHERE|HAVING)[\\s]*?$");
remove(REGEX);
}
private void remove(String regex) {
207,6 → 208,7
parenthesis--;
sb.append(')');
applyRegex();
clauseIf = true;
}
private Alias<?> findAlias() {