title: Runtime SQL Query Builder
body: <p>My question is similar to </p>
  
  <p><a href="https://stackoverflow.com/questions/5620985/is-there-any-good-dynamic-sql-builder-library-in-java">Is there any good dynamic SQL builder library in Java?</a></p>
  
  <p>However one important point taken from above thread:</p>
  
  <blockquote>
    <p>Querydsl and jOOQ seem to be the most popular and mature choices however there's one thing to be aware of: <strong>Both rely on the concept of code generation</strong>, where meta classes are generated for database tables and fields. This facilitates a nice, clean DSL but it <strong>faces a problem when trying to create queries for databases that are only known at runtime</strong>.</p>
  </blockquote>
  
  <p>Is there any way to create the queries at runtime besides just using plain JDBC + String concatenation?</p>
  
  <p>What I'm looking for is a web application that can be used to build forms to query existing databases. Now if something like that already exists links to such a product would be welcome too.</p>