## Uses of Class
javax.faces.model.DataModel

- Packages that use DataModel
  Package | Description
  --- | ---
  javax.faces.component | Fundamental APIs for user interface components.
  javax.faces.model | Standard model data beans for JavaServer Faces.

- - ### Uses of DataModel in javax.faces.component

    Methods in javax.faces.component that return DataModel
    Modifier and Type | Method and Description
    --- | ---
    `protected DataModel` | UIData.`getDataModel()` Return the internal `DataModel` object representing the data objects that we will iterate over in this component's rendering.

    Methods in javax.faces.component with parameters of type DataModel
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | UIData.`setDataModel(DataModel dataModel)` Set the internal DataModel.

  - ### Uses of DataModel in javax.faces.model

    Subclasses of DataModel in javax.faces.model
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ArrayDataModel<E>` ArrayDataModel is a convenience implementation of `DataModel` that wraps an array of Java objects.
    `class` | `CollectionDataModel<E>` CollectionDataModel is a convenience implementation of `DataModel` that wraps an `Collection` of Java objects.
    `class` | `ListDataModel<E>` ListDataModel is a convenience implementation of `DataModel` that wraps an `List` of Java objects.
    `class` | `ResultDataModel` ResultDataModel is a convenience implementation of `DataModel` that wraps a JSTL `Result` object, typically representing the results of executing an SQL query via JSTL tags.
    `class` | `ResultSetDataModel` ResultSetDataModel is a convenience implementation of `DataModel` that wraps a `ResultSet` of Java objects.
    `class` | `ScalarDataModel<E>` ScalarDataModel is a convenience implementation of `DataModel` that wraps an individual Java object.

    Methods in javax.faces.model that return DataModel
    Modifier and Type | Method and Description
    --- | ---
    `DataModel` | DataModelEvent.`getDataModel()` Return the `DataModel` that fired this event.

    Constructors in javax.faces.model with parameters of type DataModel
    Constructor and Description
    `DataModelEvent(DataModel model, int index, Object data)` Construct an event object that is associated with the specified row index and associated data.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.