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 GsqlHandler
RuntimeGsqlException
@Nullable public <R> R withSql(@Nonnull String datasourceName, @Nonnull GsqlCallback<R> callback) throws RuntimeGsqlException
withSql
in interface GsqlHandler
RuntimeGsqlException
public void closeSql()
closeSql
in interface GsqlHandler
public void closeSql(@Nonnull String datasourceName)
closeSql
in interface GsqlHandler