• 0.16

Fluent JDBC Wrapper

JdbcSession is a convenient fluent wrapper around JDBC. Read this blog post: Fluent JDBC Decorator.

import com.jcabi.jdbc.JdbcSession;
public class Main {
  public static void main(String[] args) {
    String name = new JdbcSession(source)
      .sql("SELECT name FROM foo WHERE id = ?")
      .select(new SingleOutcome<String>(String.class));

The only dependency you need is (you can also download jcabi-jdbc-0.16.jar and add it to the classpath):


Similar solutions (if you know others please submit it to github): ollin, JDBI, Spring JdbcTemplate.

Cutting Edge Version

If you want to use current version of the product, you can do it with this configuration in your pom.xml: