Class AbstractTable<T>

  • All Implemented Interfaces:
    Table<T>

    public class AbstractTable<T>
    extends Object
    implements Table<T>
    • 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 List<String> distinct​(String columnName,
                                     step.core.collections.Filter filter)
        Specified by:
        distinct in interface Table<T>
        Parameters:
        columnName - the name of the column (field)
        Returns:
        the distinct values of the column
      • distinct

        public List<String> distinct​(String columnName)
        Specified by:
        distinct in interface Table<T>
        Parameters:
        columnName - the name of the column (field)
        Returns:
        the distinct values of the column
      • find

        public TableFindResult<T> find​(step.core.collections.Filter filter,
                                       step.core.collections.SearchOrder order,
                                       Integer skip,
                                       Integer limit,
                                       int maxTime)
        Specified by:
        find in interface Table<T>
      • getQueryFragmentForColumnSearch

        public step.core.collections.Filter getQueryFragmentForColumnSearch​(String columnName,
                                                                            String searchValue)
        Specified by:
        getQueryFragmentForColumnSearch in interface Table<T>
        Parameters:
        columnName - the name of the column on which the search is applied
        searchValue - 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 List<step.core.collections.Filter> getAdditionalQueryFragments​(javax.json.JsonObject queryParameters)
        Specified by:
        getAdditionalQueryFragments in interface Table<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()
      • enrichEntity

        public T enrichEntity​(T entity)
        Specified by:
        enrichEntity in interface Table<T>