forked from jdbi/jdbi
-
Notifications
You must be signed in to change notification settings - Fork 0
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.
License
tomforwood/jdbi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
About
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.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Java 99.8%
- GAP 0.2%