Package step.core.execution.table
Class ExecutionCollection
- java.lang.Object
-
- step.core.accessors.collections.Collection<ExecutionWrapper>
-
- step.core.execution.table.ExecutionCollection
-
public class ExecutionCollection extends Collection<ExecutionWrapper>
-
-
Field Summary
-
Fields inherited from class step.core.accessors.collections.Collection
CSV_DELIMITER
-
-
Constructor Summary
Constructors Constructor Description ExecutionCollection(GlobalContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
distinct(String key)
ExecutionWrapper
enrichEntity(ExecutionWrapper execution)
This hook can be called for each element returned by the find() methods and allows enrichment of the returned objectsClass<?>
getEntityClass()
org.bson.conversions.Bson
getQueryFragmentForColumnSearch(String columnName, String searchValue)
-
Methods inherited from class step.core.accessors.collections.Collection
distinct, export, find, find, getAdditionalQueryFragments, getExportFields, isFiltered
-
-
-
-
Constructor Detail
-
ExecutionCollection
public ExecutionCollection(GlobalContext context)
-
-
Method Detail
-
enrichEntity
public ExecutionWrapper enrichEntity(ExecutionWrapper execution)
Description copied from class:Collection
This hook can be called for each element returned by the find() methods and allows enrichment of the returned objects- Overrides:
enrichEntity
in classCollection<ExecutionWrapper>
- Parameters:
execution
- the element to be modified- Returns:
- the modified element
-
distinct
public List<String> distinct(String key)
- Overrides:
distinct
in classCollection<ExecutionWrapper>
- Parameters:
key
- the name of the column (field)- Returns:
- the distinct values of the column
-
getQueryFragmentForColumnSearch
public org.bson.conversions.Bson getQueryFragmentForColumnSearch(String columnName, String searchValue)
- Overrides:
getQueryFragmentForColumnSearch
in classCollection<ExecutionWrapper>
- Parameters:
columnName
- the name of the column on which the search is appliedsearchValue
- the value entered by the end user- Returns:
- a list of query fragments to be appended to the queries when performing a column search
-
getEntityClass
public Class<?> getEntityClass()
- Overrides:
getEntityClass
in classCollection<ExecutionWrapper>
-
-