http://www.h2database.com/html/frame.html?jaqu.html&main
What is JaQu
JaQu stands for Java Query and allows to access databases using pure Java. JaQu replaces SQL, JDBC, and O/R frameworks such as Hibernate. JaQu is something like LINQ for Java (LINQ stands for “language integrated query” and is a Microsoft .NET technology). The following JaQu code:
Product p = new Product();
List<Product> soldOutProducts =
db.from(p).where(p.unitsInStock).is(0).select();
Advantages
Unlike to SQL, JaQu can be easily integrated in Java applications. Because JaQu is pure Java, Javadoc and auto-complete are supported. Type checking is performed by the compiler. JaQu fully protects against SQL injection.
Why in Java?
Most people use Java in their application. Mixing Java and another language (for example Scala or Groovy) in the same application is complicated. It would be required to split the code to access the database and the application code.
Current State
JaQu is not yet stable, and not part of the h2.jar file. However the source code is included in H2, under:
* src/test/org/h2/test/jaqu/* (samples and tests)
* src/tools/org/h2/jaqu/* (framework)
Requirements
JaQu requires Java 1.5. Annotations are not need. Currently, JaQu is only tested with the H2 database engine, however in theory it should work with any database that supports the JDBC API.

