This TableDataProvider
implementation wraps access to a java.util.List
of Java Objects
. Depending on whether the class in the list is a simple Java Object
or a JavaBeans object, the data provider's field keys correspond either to the properties of the JavaBeans object or to the public member fields of the Java Object
in the list. If the class in the list is not a JavaBeans object, you must set the includeFields
property to make the class's public instance variables accessible as fields.
This data provider is one of several TableDataProvider
implementations that have the notion of a cursor that can be positioned at a particular row in the underlying data. TableDataProvider
provides both random access, where you specify both a FieldKey
and a RowKey
, and cursor-based access, where you specify a FieldKey
and the RowKey
is determined by the current setting for the cursor.
This data provider also implements TransactionalDataProvider
semantics, meaning that all updates to existing fields, as well as inserted and deleted rows, are cached until commitChanges()
is called. After that call is made, any RowKey
you have retrieved from this instance is invalid and must be reacquired.
setObject(Object)
method. For this data provider to remain serializable, the contained objects must also be serializable.