Class AbstractTable<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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
        Specified by:
        distinct in interface Table<T>
        Parameters:
        columnName - the name of the column (field)
        Returns:
        the distinct values of the column
      • distinct

        public java.util.List<java.lang.String> distinct​(java.lang.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,
                                       java.lang.Integer skip,
                                       java.lang.Integer limit,
                                       int maxTime)
        Specified by:
        find in interface Table<T>
      • getQueryFragmentForColumnSearch

        public step.core.collections.Filter getQueryFragmentForColumnSearch​(java.lang.String columnName,
                                                                            java.lang.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 java.util.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>