Search in sources :

Example 1 with ResultSetMapperFactory

use of org.skife.jdbi.v2.ResultSetMapperFactory in project killbill by killbill.

the class KillbillServerModule method configureDao.

@Override
protected void configureDao() {
    super.configureDao();
    final Multibinder<ResultSetMapperFactory> resultSetMapperFactorySetBinder = Multibinder.newSetBinder(binder(), ResultSetMapperFactory.class);
    resultSetMapperFactorySetBinder.addBinding().toInstance(new LowerToCamelBeanMapperFactory(SessionModelDao.class));
    final Multibinder<ResultSetMapper> resultSetMapperSetBinder = Multibinder.newSetBinder(binder(), ResultSetMapper.class);
    resultSetMapperSetBinder.addBinding().to(AuditLogModelDaoMapper.class).asEagerSingleton();
    resultSetMapperSetBinder.addBinding().to(RecordIdIdMappingsMapper.class).asEagerSingleton();
}
Also used : SessionModelDao(org.killbill.billing.util.security.shiro.dao.SessionModelDao) ResultSetMapperFactory(org.skife.jdbi.v2.ResultSetMapperFactory) RecordIdIdMappingsMapper(org.killbill.billing.util.dao.RecordIdIdMappingsMapper) ResultSetMapper(org.skife.jdbi.v2.tweak.ResultSetMapper) LowerToCamelBeanMapperFactory(org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory) AuditLogModelDaoMapper(org.killbill.billing.util.dao.AuditLogModelDaoMapper)

Aggregations

AuditLogModelDaoMapper (org.killbill.billing.util.dao.AuditLogModelDaoMapper)1 RecordIdIdMappingsMapper (org.killbill.billing.util.dao.RecordIdIdMappingsMapper)1 SessionModelDao (org.killbill.billing.util.security.shiro.dao.SessionModelDao)1 LowerToCamelBeanMapperFactory (org.killbill.commons.jdbi.mapper.LowerToCamelBeanMapperFactory)1 ResultSetMapperFactory (org.skife.jdbi.v2.ResultSetMapperFactory)1 ResultSetMapper (org.skife.jdbi.v2.tweak.ResultSetMapper)1