MentaBean

Rev

Rev 205 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 205 Rev 207
Line 31... Line 31...
31
 */
31
 */
32
@SuppressWarnings({"rawtypes", "unchecked"})
32
@SuppressWarnings({"rawtypes", "unchecked"})
33
public class QueryBuilder {
33
public class QueryBuilder {
34
34
35
        private static final String REGEX = "(AND|OR|\\([\\s]*?\\)|WHERE|HAVING)[\\s]*?$";
35
        private static final String REGEX = "(AND|OR|\\([\\s]*?\\)|WHERE|HAVING)[\\s]*?$";
36
        private static final String NO_CLAUSE_REGEX = ".*(WHERE|HAVING)[\\s]*?$";
-
 
-
 
36
        private static final String NO_CLAUSE_REGEX = ".*(WHERE|HAVING|\\()[\\s]*?$";
37
        private StringBuilder sb = new StringBuilder();
37
        private StringBuilder sb = new StringBuilder();
38
        private final AnsiSQLBeanSession session;
38
        private final AnsiSQLBeanSession session;
39
        private List<Object> paramValues = new ArrayList<Object>();
39
        private List<Object> paramValues = new ArrayList<Object>();
40
        private List<Alias<?>> selectAliases;
40
        private List<Alias<?>> selectAliases;
41
        private List<Alias<?>> createdAliases = new ArrayList<Alias<?>>();
41
        private List<Alias<?>> createdAliases = new ArrayList<Alias<?>>();