public class DefaultGsqlHandler extends Object implements GsqlHandler
| Constructor and Description |
|---|
DefaultGsqlHandler(GsqlFactory gsqlFactory,
GsqlStorage gsqlStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSql() |
void |
closeSql(String datasourceName) |
<R> R |
withSql(GsqlCallback<R> callback) |
<R> R |
withSql(String datasourceName,
GsqlCallback<R> callback) |
@Inject public DefaultGsqlHandler(@Nonnull GsqlFactory gsqlFactory, @Nonnull GsqlStorage gsqlStorage)
@Nullable public <R> R withSql(@Nonnull GsqlCallback<R> callback) throws RuntimeGsqlException
withSql in interface GsqlHandlerRuntimeGsqlException@Nullable public <R> R withSql(@Nonnull String datasourceName, @Nonnull GsqlCallback<R> callback) throws RuntimeGsqlException
withSql in interface GsqlHandlerRuntimeGsqlExceptionpublic void closeSql()
closeSql in interface GsqlHandlerpublic void closeSql(@Nonnull String datasourceName)
closeSql in interface GsqlHandler