SqlBuilder is a library that attempts to take the pain out of generating SQL queries within Java programs. It wraps the SQL syntax within very lightweight and easy to use Java objects that follow the "builder" paradigm (similar to StringBuilder). This changes many common SQL syntactical, runtime errors into Java compile-time errors.


The way that state is maintained during query validation was changed. The ValidationContext is used instead of a few collections in order to enable more complicated subquery handling. This change allows subqueries to be validated correctly and opens the door for sub-clause validation.

URL: SqlBuilder - Builder style classes for creating SQL queries