title: Dynamic create WHERE clause from user Search criteria
body: <p>I have what I'm sure is a fairly common issue, and I don't want to re-invent the wheel. 
  I have a search form where users can specify search criteria and type of search (AND OR Ext..).</p>
  
  <p>The form passes back id's that map to column names and values. Currently, I'm using server side Java to glue the strings together into a where clause. It works in some cases, but it's clunky, error prone and will not scale well. </p>
  
  <p>Any suggestions? </p>
  
  <p>Thanks,</p>
  
  <p>David</p>