public class DefaultSql2oHandler extends Object implements Sql2oHandler
Constructor and Description |
---|
DefaultSql2oHandler(Sql2oFactory sql2oFactory,
Sql2oStorage sql2oStorage) |
Modifier and Type | Method and Description |
---|---|
void |
closeSql2o() |
void |
closeSql2o(String datasourceName) |
<R> R |
withSql2o(Sql2oCallback<R> callback) |
<R> R |
withSql2o(String datasourceName,
Sql2oCallback<R> callback) |
@Inject public DefaultSql2oHandler(@Nonnull Sql2oFactory sql2oFactory, @Nonnull Sql2oStorage sql2oStorage)
@Nullable public <R> R withSql2o(@Nonnull Sql2oCallback<R> callback) throws RuntimeSql2oException
withSql2o
in interface Sql2oHandler
RuntimeSql2oException
@Nullable public <R> R withSql2o(@Nonnull String datasourceName, @Nonnull Sql2oCallback<R> callback) throws RuntimeSql2oException
withSql2o
in interface Sql2oHandler
RuntimeSql2oException
public void closeSql2o()
closeSql2o
in interface Sql2oHandler
public void closeSql2o(@Nonnull String datasourceName)
closeSql2o
in interface Sql2oHandler