Skip to content

Introduction

Kaumei JDBC is a Java library and annotation processor for Java code that keeps SQL statements visible in the source. You define annotated interfaces. The build generates plain JDBC implementations for them.

It is meant for projects that want to keep SQL visible, but do not want to repeat the usual JDBC plumbing for parameter binding, result mapping, and resource handling.

At build time, the annotation processor reads your JDBC interfaces and SQL annotations. It validates supported bindings and generates strongly typed Java classes.

At runtime, your application provides JDBC connections through JdbcConnectionProvider. You call the generated methods directly to execute your SQL. There is no runtime model building, no runtime mapper registry, and no SQL generation at application start.

Need help deciding whether Kaumei JDBC fits your use case? See Why Kaumei JDBC for details on trade-offs and alternatives.