public interface DataSourceHandler
Modifier and Type | Method and Description |
---|---|
void |
closeDataSource() |
void |
closeDataSource(String dataSourceName) |
<R> R |
withConnection(ConnectionCallback<R> callback) |
<R> R |
withConnection(String dataSourceName,
ConnectionCallback<R> callback) |
<R> R |
withDataSource(DataSourceCallback<R> callback) |
<R> R |
withDataSource(String dataSourceName,
DataSourceCallback<R> callback) |
@Nullable <R> R withDataSource(@Nonnull DataSourceCallback<R> callback) throws RuntimeSQLException
RuntimeSQLException
@Nullable <R> R withDataSource(@Nonnull String dataSourceName, @Nonnull DataSourceCallback<R> callback) throws RuntimeSQLException
RuntimeSQLException
@Nullable <R> R withConnection(@Nonnull ConnectionCallback<R> callback) throws RuntimeSQLException
RuntimeSQLException
@Nullable <R> R withConnection(@Nonnull String dataSourceName, @Nonnull ConnectionCallback<R> callback) throws RuntimeSQLException
RuntimeSQLException
void closeDataSource()