Class InternalJdbiBinder
- All Implemented Interfaces:
JdbiBinder
-
Method Summary
Modifier and TypeMethodDescriptionbindArrayType
(Class<?> arrayType) Creates a new binding for a SQL array type.bindCodec
(GenericType<?> genericType) Creates a new binding for aCodec
using aGenericType
.bindCodec
(QualifiedType<?> qualifiedType) Creates a new binding for aCodec
using aQualifiedType
.Creates a new binding for aColumnMapper
.bindColumnMapper
(Type type) Creates a new binding for aColumnMapper
using aType
.bindColumnMapper
(GenericType<?> genericType) Creates a new binding for aColumnMapper
using aGenericType
.bindColumnMapper
(QualifiedType<?> qualifiedType) Creates a new binding for aColumnMapper
using aQualifiedType
.Creates a new binding for aGuiceJdbiCustomizer
.Creates a new binding for aJdbiPlugin
.Creates a new binding for aRowMapper
.bindRowMapper
(Type type) bindRowMapper
(GenericType<?> genericType) Creates a new binding for aRowMapper
using aGenericType
.static InternalJdbiBinder
jdbiBinder
(Binder binder) Creates a new binder for Jdbi related elements.static InternalJdbiBinder
jdbiBinder
(Binder binder, Class<? extends Annotation> annotationClass) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.guice.JdbiBinder
jdbiBinder
-
Method Details
-
jdbiBinder
Creates a new binder for Jdbi related elements. -
jdbiBinder
public static InternalJdbiBinder jdbiBinder(Binder binder, Class<? extends Annotation> annotationClass) -
bindRowMapper
Description copied from interface:JdbiBinder
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()
.- Specified by:
bindRowMapper
in interfaceJdbiBinder
-
bindRowMapper
Description copied from interface:JdbiBinder
Creates a new binding for aRowMapper
using aGenericType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindRowMapper
in interfaceJdbiBinder
-
bindRowMapper
Description copied from interface:JdbiBinder
Creates a new binding for aRowMapper
using aType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindRowMapper
in interfaceJdbiBinder
-
bindColumnMapper
Description copied from interface:JdbiBinder
Creates a new binding for aColumnMapper
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindColumnMapper
in interfaceJdbiBinder
-
bindColumnMapper
Description copied from interface:JdbiBinder
Creates a new binding for aColumnMapper
using aQualifiedType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindColumnMapper
in interfaceJdbiBinder
-
bindColumnMapper
Description copied from interface:JdbiBinder
Creates a new binding for aColumnMapper
using aGenericType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindColumnMapper
in interfaceJdbiBinder
-
bindColumnMapper
Description copied from interface:JdbiBinder
Creates a new binding for aColumnMapper
using aType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindColumnMapper
in interfaceJdbiBinder
-
bindArrayType
Description copied from interface:JdbiBinder
Creates a new binding for a SQL array type.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindArrayType
in interfaceJdbiBinder
-
bindCodec
Description copied from interface:JdbiBinder
Creates a new binding for aCodec
using aQualifiedType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindCodec
in interfaceJdbiBinder
-
bindCodec
Description copied from interface:JdbiBinder
Creates a new binding for aCodec
using aGenericType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindCodec
in interfaceJdbiBinder
-
bindCodec
Description copied from interface:JdbiBinder
Creates a new binding for aCodec
using aType
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindCodec
in interfaceJdbiBinder
-
bindPlugin
Description copied from interface:JdbiBinder
Creates a new binding for aJdbiPlugin
.Only valid when called from
AbstractJdbiDefinitionModule.configureJdbi()
orAbstractJdbiConfigurationModule.configureJdbi()
.- Specified by:
bindPlugin
in interfaceJdbiBinder
-
bindCustomizer
Description copied from interface:JdbiBinder
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()
.- Specified by:
bindCustomizer
in interfaceJdbiBinder
-