Class LazyDataModel<T>

    • Constructor Detail

      • LazyDataModel

        public LazyDataModel()
    • Method Detail

      • load

        public abstract List<T> load​(int first,
                                     int pageSize,
                                     Map<String,​SortMeta> sortBy,
                                     Map<String,​FilterMeta> filterBy)
        Loads the data for the given parameters.
        Parameters:
        first - the first entry
        pageSize - the page size
        sortBy - a list with all sort information
        filterBy - a map with all filter information
        Returns:
        the data
      • iterator

        public Iterator<T> iterator()
        Specified by:
        iterator in interface Iterable<T>
        Overrides:
        iterator in class javax.faces.model.DataModel<T>
      • getRowCount

        public int getRowCount()
        Overrides:
        getRowCount in class javax.faces.model.ListDataModel<T>
      • setRowIndex

        public void setRowIndex​(int rowIndex)
        Overrides:
        setRowIndex in class javax.faces.model.ListDataModel<T>
      • getWrappedData

        public List<T> getWrappedData()
        Overrides:
        getWrappedData in class javax.faces.model.ListDataModel<T>
      • getPageSize

        public int getPageSize()
      • setPageSize

        public void setPageSize​(int pageSize)
      • setRowCount

        public void setRowCount​(int rowCount)