Range
object which implements the Predicate
interface. This object expresses the following constraints: All rows outputted or modified from this FilteredRowSet
object must fall between the values 'Alpha' and 'Bravo' both values inclusive, in the column 'columnName'. If a filter is applied to a FilteredRowSet
object that contains no data that falls within the range of the filter, no rows are returned. This framework allows multiple classes implementing predicates to be used in combination to achieved the required filtering result with out the need for query language processing.
FilteredRowSet
ObjectFilteredRowSet
object applies a criterion on all rows in a RowSet
object to manage a subset of rows in a RowSet
object. This criterion governs the subset of rows that are visible and also defines which rows can be modified, deleted or inserted. Therefore, the predicate set on a FilteredRowSet
object must be considered as bi-directional and the set criterion as the gating mechanism for all views and updates to the FilteredRowSet
object. Any attempt to update the FilteredRowSet
that violates the criterion will result in a SQLException
object being thrown.
The FilteredRowSet
range criterion can be modified by applying a new Predicate
object to the FilteredRowSet
instance at any time. This is possible if no additional references to the FilteredRowSet
object are detected. A new filter has has an immediate effect on criterion enforcement within the FilteredRowSet
object, and all subsequent views and updates will be subject to similar enforcement.
FilteredRowSet
object cannot be modified until the filter is removed or a new filter is applied. Furthermore, only rows that fall within the bounds of a filter will be synchronized with the data source. @author Jonathan Bruce
|
|