Class ClientRefDataQuery
- java.lang.Object
-
- com.avoka.fc.core.servlet.dd.reference.ClientRefDataQuery
-
public class ClientRefDataQuery extends Object
Provides a class for querying CSV property files for reference data lookup. propertyRowList (required) The calling class first gets the existing CSV property value. The CSV is imported into memory as a row list - List
-
-
Constructor Summary
Constructors Constructor Description ClientRefDataQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
Runs the query against the row list.String
getExampleQuery()
Gets an example JSON query String.ClientRefDataQuery
setQuery(String queryJson)
Sets the property query json.ClientRefDataQuery
setRowList(List<Map<String,String>> rowList)
Sets the property row list.List<String>
validate()
Validates the inputs returning a List of String validation errors First it does some basic checks to ensure data is set
-
-
-
Method Detail
-
setQuery
public ClientRefDataQuery setQuery(String queryJson)
Sets the property query json.- Parameters:
queryJson
- the String JSON value defining the property query- Returns:
- this instance of CsvPropertyQuery
-
setRowList
public ClientRefDataQuery setRowList(List<Map<String,String>> rowList)
Sets the property row list.- Parameters:
rowList
- the List> imported from the CSV property - Returns:
- this instance of CsvPropertyQuery
-
validate
public List<String> validate()
Validates the inputs returning a List of String validation errors First it does some basic checks to ensure data is set- Returns:
- this List of String validation errors
-
execute
public String execute()
Runs the query against the row list.- Returns:
- the query result as JSON String. The result is an array of Objects.
-
getExampleQuery
public String getExampleQuery()
Gets an example JSON query String. This is used by the ClientRefDataTestPage as a starter.- Returns:
- an example JSON query String.
-
-