public class DatasourceProvider
extends java.lang.Object
DatasourceProvider
provides methods for executing datasource-queries
This Class is usually used in Rule-classes and allows API access only
DatasourceResult
,
Datasource
Constructor and Description |
---|
DatasourceProvider() |
Modifier and Type | Method and Description |
---|---|
static DatasourceResult |
createResult(java.util.List<java.lang.Object[]> rows,
java.util.List<DatasourceColumn> columns) |
static DatasourceColumn |
createResultColumn(java.lang.String name,
java.lang.Class clz) |
static DatasourceResult |
run(java.lang.Class<? extends Datasource> datasourceClass)
This methods executes a query for a given
Datasource -Object. |
static DatasourceResult |
run(java.lang.Class<? extends Datasource> datasourceClass,
java.util.Map<java.lang.String,java.lang.Object> params)
This methods executes a query for a given
Datasource -Object. |
void |
setDatasourceService(DatasourceService service) |
public void setDatasourceService(DatasourceService service)
public static DatasourceResult run(java.lang.Class<? extends Datasource> datasourceClass) throws BusinessException
Datasource
-Object. The returning NuclosResult
contains all found results. There are no parameter passed to the query.datasourceClass
- Class<? extends Datasource> datasourceClassBusinessException
public static DatasourceResult run(java.lang.Class<? extends Datasource> datasourceClass, java.util.Map<java.lang.String,java.lang.Object> params) throws BusinessException
Datasource
-Object. The returning NuclosResult
contains all found results. The parameters are passed to the query.datasourceClass
- Class<? extends Datasource> datasourceClassparams
- Map<String, Object> paramsBusinessException
public static DatasourceResult createResult(java.util.List<java.lang.Object[]> rows, java.util.List<DatasourceColumn> columns)
public static DatasourceColumn createResultColumn(java.lang.String name, java.lang.Class clz)
Copyright © 2024. All rights reserved.