org.icefaces.ace.model.table

## Class LazyDataModel<T>

- java.lang.Object
- - javax.faces.model.DataModel
  - - org.icefaces.ace.model.table.LazyDataModel<T>

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable

      public abstract class LazyDataModel<T>
      extends javax.faces.model.DataModel
      implements java.io.Serializable

  Custom lazy loading DataModel to deal with huge datasets
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LazyDataModel()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPageSize()`
    `int` | `getRowCount()`
    `java.lang.Object` | `getRowData()`
    `int` | `getRowIndex()`
    `java.lang.Object` | `getWrappedData()`
    `boolean` | `isRowAvailable()`
    `abstract java.util.List<T>` | `load(int first, int pageSize, SortCriteria[] sortCriteria, java.util.Map<java.lang.String,java.lang.String> filters)`
    `void` | `setPageSize(int pageSize)`
    `void` | `setRowCount(int rowCount)`
    `void` | `setRowIndex(int rowIndex)`
    `void` | `setWrappedData(java.lang.Object list)`

    - ### Methods inherited from class javax.faces.model.DataModel

      `addDataModelListener, getDataModelListeners, iterator, removeDataModelListener`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### LazyDataModel

          public LazyDataModel()

  - ### Method Detail

    - #### isRowAvailable

          public boolean isRowAvailable()

      Specified by:
        `isRowAvailable` in class `javax.faces.model.DataModel`

    - #### getRowCount

          public int getRowCount()

      Specified by:
        `getRowCount` in class `javax.faces.model.DataModel`

    - #### getRowData

          public java.lang.Object getRowData()

      Specified by:
        `getRowData` in class `javax.faces.model.DataModel`

    - #### getRowIndex

          public int getRowIndex()

      Specified by:
        `getRowIndex` in class `javax.faces.model.DataModel`

    - #### setRowIndex

          public void setRowIndex(int rowIndex)

      Specified by:
        `setRowIndex` in class `javax.faces.model.DataModel`

    - #### getWrappedData

          public java.lang.Object getWrappedData()

      Specified by:
        `getWrappedData` in class `javax.faces.model.DataModel`

    - #### setWrappedData

          public void setWrappedData(java.lang.Object list)

      Specified by:
        `setWrappedData` in class `javax.faces.model.DataModel`

    - #### getPageSize

          public int getPageSize()

    - #### setPageSize

          public void setPageSize(int pageSize)

    - #### setRowCount

          public void setRowCount(int rowCount)

    - #### load

          public abstract java.util.List<T> load(int first,
                                                 int pageSize,
                                                 SortCriteria[] sortCriteria,
                                                 java.util.Map<java.lang.String,java.lang.String> filters)

Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.