public class DefaultJdbiHandler extends Object implements JdbiHandler
Constructor and Description |
---|
DefaultJdbiHandler(JdbiFactory jdbiFactory,
JdbiStorage jdbiStorage) |
Modifier and Type | Method and Description |
---|---|
void |
closeJdbi() |
void |
closeJdbi(String datasourceName) |
<R> R |
withJdbi(JdbiCallback<R> callback) |
<R> R |
withJdbi(String datasourceName,
JdbiCallback<R> callback) |
@Inject public DefaultJdbiHandler(@Nonnull JdbiFactory jdbiFactory, @Nonnull JdbiStorage jdbiStorage)
@Nullable public <R> R withJdbi(@Nonnull JdbiCallback<R> callback) throws RuntimeJdbiException
withJdbi
in interface JdbiHandler
RuntimeJdbiException
@Nullable public <R> R withJdbi(@Nonnull String datasourceName, @Nonnull JdbiCallback<R> callback) throws RuntimeJdbiException
withJdbi
in interface JdbiHandler
RuntimeJdbiException
public void closeJdbi()
closeJdbi
in interface JdbiHandler
public void closeJdbi(@Nonnull String datasourceName)
closeJdbi
in interface JdbiHandler