public class EchoDataSource extends Object implements CustomQueryBasedDS
Modifier and Type | Class and Description |
---|---|
class |
EchoDataSource.EchoQueryResult
Sample query:-
"column1,column2,column3;
R1C1 $1,R1C2 $2;
R2C1 $3,R2C2 $4"
|
Constructor and Description |
---|
EchoDataSource() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the data source.
|
QueryResult |
executeQuery(String query,
List<InternalParam> params) |
void |
init(Map<String,String> props)
Initialized the custom data source.
|
public void init(Map<String,String> props) throws DataServiceFault
CustomDataSourceBase
init
in interface CustomDataSourceBase
props
- The properties used for initializationDataServiceFault
- Thrown if any error occurspublic void close()
CustomDataSourceBase
close
in interface CustomDataSourceBase
public QueryResult executeQuery(String query, List<InternalParam> params) throws DataServiceFault
executeQuery
in interface CustomQueryBasedDS
DataServiceFault
Copyright © 2019 WSO2. All rights reserved.