public class StandaloneFluentJdbcModule
extends com.google.inject.AbstractModule
Guice module for binding of FluentJdbc and Query interfaces, and @Transactional interceptors. FluentJdbc can be customized via FluentJdbcBuilder. The connection provider doesn't need to be set, it will be overridden by the module.
Example:FluentJdbcBuilder fluentJdbcBuilder = new FluentJdbcBuilder(); // ... configure if needed DataSource dataSource = ... StandaloneFluentJdbcModule module = new StandaloneFluentJdbcModule(fluentJdbcBuilder, dataSource);
| Constructor and Description |
|---|
StandaloneFluentJdbcModule(FluentJdbcBuilder fluentJdbcBuilder,
ConnectionProvider connectionProvider)
Constructs StandaloneFluentJdbcModule based on a custom ConnectionProvider.
|
StandaloneFluentJdbcModule(FluentJdbcBuilder fluentJdbcBuilder,
DataSource dataSource) |
| 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, requireBindingpublic StandaloneFluentJdbcModule(FluentJdbcBuilder fluentJdbcBuilder, DataSource dataSource)
public StandaloneFluentJdbcModule(FluentJdbcBuilder fluentJdbcBuilder, ConnectionProvider connectionProvider)
fluentJdbcBuilder - Fluent-Jdbc configurationconnectionProvider - an implementation that must keep the connection open after providing it to the QueryCopyright © 2016. All rights reserved.