public class JdbiModule
extends com.google.inject.AbstractModule
DBI for injection.
Introduce unit of work concept for JDBI: thread-bound handle must be created in order to access db (work with db
only inside unit of work). Assumed that repositories will be installed with
RepositoryInstaller, which will customize instances to
support unit of work. Also, customized instances support guice aop.
It is assumed that in most cases unit of work will be defined together with transaction using transaction
annotation (on or more). By default, only InTransaction annotation will be
recognized.
| Constructor and Description |
|---|
JdbiModule(org.skife.jdbi.v2.DBI jdbi,
java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> txAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding