Package step.core.tables
Class AbstractTable<T>
- java.lang.Object
-
- step.core.tables.AbstractTable<T>
-
- All Implemented Interfaces:
Table<T>
- Direct Known Subclasses:
ExecutionTable
,ParameterTable
,PlanTable
,ReportNodeTable
public class AbstractTable<T> extends java.lang.Object implements Table<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected step.core.collections.Collection<T>
collection
-
Constructor Summary
Constructors Constructor Description AbstractTable(step.core.collections.Collection<T> CollectionDriver, boolean filtered)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
distinct(java.lang.String columnName)
java.util.List<java.lang.String>
distinct(java.lang.String columnName, step.core.collections.Filter filter)
T
enrichEntity(T entity)
TableFindResult<T>
find(step.core.collections.Filter filter, step.core.collections.SearchOrder order, java.lang.Integer skip, java.lang.Integer limit, int maxTime)
java.util.List<step.core.collections.Filter>
getAdditionalQueryFragments(javax.json.JsonObject queryParameters)
java.util.Map<java.lang.String,TableColumn>
getExportFields()
step.core.collections.Filter
getQueryFragmentForColumnSearch(java.lang.String columnName, java.lang.String searchValue)
boolean
isFiltered()
-
-
-
Field Detail
-
collection
protected final step.core.collections.Collection<T> collection
-
-
Constructor Detail
-
AbstractTable
public AbstractTable(step.core.collections.Collection<T> CollectionDriver, boolean filtered)
-
-
Method Detail
-
distinct
public java.util.List<java.lang.String> distinct(java.lang.String columnName, step.core.collections.Filter filter)
-
distinct
public java.util.List<java.lang.String> distinct(java.lang.String columnName)
-
find
public TableFindResult<T> find(step.core.collections.Filter filter, step.core.collections.SearchOrder order, java.lang.Integer skip, java.lang.Integer limit, int maxTime)
-
getQueryFragmentForColumnSearch
public step.core.collections.Filter getQueryFragmentForColumnSearch(java.lang.String columnName, java.lang.String searchValue)
- Specified by:
getQueryFragmentForColumnSearch
in interfaceTable<T>
- 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
-
getAdditionalQueryFragments
public java.util.List<step.core.collections.Filter> getAdditionalQueryFragments(javax.json.JsonObject queryParameters)
- Specified by:
getAdditionalQueryFragments
in interfaceTable<T>
- Parameters:
queryParameters
- some context parameters that might be required to generate the additional query fragments- Returns:
- a list of query fragments to be appended to the queries when calling the method find()
-
isFiltered
public boolean isFiltered()
- Specified by:
isFiltered
in interfaceTable<T>
- Returns:
- true if the filter defined by the
ObjectFilter
of theObjectHookRegistry
have to be applied when performing a search
-
enrichEntity
public T enrichEntity(T entity)
- Specified by:
enrichEntity
in interfaceTable<T>
-
getExportFields
public java.util.Map<java.lang.String,TableColumn> getExportFields()
- Specified by:
getExportFields
in interfaceTable<T>
-
-