Interface JdbiBinder
- All Known Implementing Classes:
AbstractJdbiConfigurationModule
,AbstractJdbiDefinitionModule
-
Method Summary
Modifier and TypeMethodDescriptiondefault LinkedBindingBuilder
<String> bindArrayType
(Class<?> arrayType) Creates a new binding for a SQL array type.default LinkedBindingBuilder
<Codec<?>> default LinkedBindingBuilder
<Codec<?>> bindCodec
(GenericType<?> genericType) Creates a new binding for aCodec
using aGenericType
.default LinkedBindingBuilder
<Codec<?>> bindCodec
(QualifiedType<?> qualifiedType) Creates a new binding for aCodec
using aQualifiedType
.default LinkedBindingBuilder
<ColumnMapper<?>> Creates a new binding for aColumnMapper
.default LinkedBindingBuilder
<ColumnMapper<?>> bindColumnMapper
(Type type) Creates a new binding for aColumnMapper
using aType
.default LinkedBindingBuilder
<ColumnMapper<?>> bindColumnMapper
(GenericType<?> genericType) Creates a new binding for aColumnMapper
using aGenericType
.default LinkedBindingBuilder
<ColumnMapper<?>> bindColumnMapper
(QualifiedType<?> qualifiedType) Creates a new binding for aColumnMapper
using aQualifiedType
.default LinkedBindingBuilder
<GuiceJdbiCustomizer> Creates a new binding for aGuiceJdbiCustomizer
.default LinkedBindingBuilder
<JdbiPlugin> Creates a new binding for aJdbiPlugin
.default LinkedBindingBuilder
<RowMapper<?>> Creates a new binding for aRowMapper
.default LinkedBindingBuilder
<RowMapper<?>> bindRowMapper
(Type type) default LinkedBindingBuilder
<RowMapper<?>> bindRowMapper
(GenericType<?> genericType) Creates a new binding for aRowMapper
using aGenericType
.default JdbiBinder
Provides access to aJdbiBinder
instance.
-
Method Details
-
jdbiBinder
Provides access to aJdbiBinder
instance.Must be overridden by implementing classes, otherwise it will throw
UnsupportedOperationException
. -
bindRowMapper
Creates a new binding for aRowMapper
.jdbiBinder.bindRowMapper().to(FancyDataTypeMapper.class).in(Scopes.SINGLETON); jdbiBinder.bindRowMapper().toInstance(new BoringDataTypeMapper()).in(Scopes.SINGLETON);
Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindRowMapper
Creates a new binding for aRowMapper
using aGenericType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindRowMapper
Creates a new binding for aRowMapper
using aType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindColumnMapper
Creates a new binding for aColumnMapper
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindColumnMapper
Creates a new binding for aColumnMapper
using aQualifiedType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindColumnMapper
Creates a new binding for aColumnMapper
using aGenericType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindColumnMapper
Creates a new binding for aColumnMapper
using aType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindCodec
Creates a new binding for aCodec
using aQualifiedType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindCodec
Creates a new binding for aCodec
using aGenericType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindCodec
Creates a new binding for aCodec
using aType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindArrayType
Creates a new binding for a SQL array type.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindPlugin
Creates a new binding for aJdbiPlugin
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
. -
bindCustomizer
Creates a new binding for aGuiceJdbiCustomizer
. All registered customizers are called on a newly createdJdbi
object and allow further customization of all aspects of theJdbi
object.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.
-