@@ -0,0 +1,1080 @@
+package ca.krasnay.panelized.datatable.sqlbuilder;%0A%0Aimport ca.krasnay.sqlbuilder.AbstractSqlCreator;%0Aimport ca.krasnay.sqlbuilder.Predicate;%0A%0Apublic class WordPrefixQuickFilter implements SelectCreatorQuickFilter %7B%0A%0A    private String dbExpr;%0A%0A    public WordPrefixQuickFilter(String dbExpr) %7B%0A        this.dbExpr = dbExpr;%0A    %7D%0A%0A    @Override%0A    public Predicate createPredicate(final String quickFilterString) %7B%0A%0A        return new Predicate() %7B%0A%0A            private String p1;%0A            private String p2;%0A%0A            @Override%0A            public void init(AbstractSqlCreator creator) %7B%0A                p1 = creator.allocateParameter();%0A                p2 = creator.allocateParameter();%0A                creator.setParameter(p1, quickFilterString.toLowerCase() + %22%25%22);%0A                creator.setParameter(p2, %22%25 %22 + quickFilterString.toLowerCase() + %22%25%22);%0A            %7D%0A%0A            @Override%0A            public String toSql() %7B%0A                return String.format(%22(lower(%25s) like :%25s or lower(%25s) like :%25s)%22, dbExpr, p1, dbExpr, p2);%0A            %7D%0A%0A        %7D;%0A    %7D%0A%0A%7D%0A

Implement WordPrefixQuickFilter