Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
jDBI is designed to provide convenient tabular data access in Java(tm). It uses the Java collections framework for query results, provides a convenient means of externalizing sql statements, and provides named parameter support for any database being used.
tag: jdbi-2.17

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
contrib/idea6
src
.gitignore
CHANGES_PLANNED_FOR_3_0
CONTRIBUTORS
LICENSE
NOTICE
README
RELEASE_NOTES
pom.xml

README

jDBI provides a convenience interface for SQL operations in Java. It is not
intended as an abstraction layer, but rather a library which makes the common
things easy and the hard things possible, to paraphrase Larry Wall.

The primary entry point for using jDBI is the DBI class. This is used to create
Handle instances, each of which represents a connection to the RDBMS. A Handle
wraps a JDBC Connection instance, and makes use of that same Connection for all
of its operations.

Generally, you will explicitly create statements, queries, and batch
operations for working with data in the database. Separate objects are used to
represent these things, and they are designed to be used in a somewhat
literate-programming style. Here is an example:

  DBI dbi = new DBI("jdbc:derby:testing");
  Handle handle = dbi.open();
  Query<Something> query = handle.createQuery("select * from something where name like :name")
                                 .bind("name", "Eri%")
                                 .map(Something.class);
  List<Something> rs = query.list();
  handle.close();

There is a mailing list at http://groups.google.com/group/jdbi
Something went wrong with that request. Please try again.