Overview

Resource FetchMode determines which side to start the counting when the result set has more than one "page". It does not affect the order of the returned results from Recent Activities -- which are always sorted in time-descending order. For example, suppose the result set (after applying other filtering options such as the PerformedOnPredicate) contains 100 recent activities and the count per page is 10. For clarity assume the activities are numbered in time-descending order from 1 (most recent) to 100 (the oldest). Then fetching forward means picking in the time-descending direction, which retrieves the latest 10 activities (No.1 to No.10), while fetching backward means picking in time-ascending direction, which retrieves activity No.91 to No.100. The FetchMode, especially used together with PerformedOnPredicate, is particularly useful for getting consistent snapshot of results when existing activities in the result set may get purged (due to, e.g., purge of entities) or new activities may occur between two calls.

Enumeration Members

Name Description

FORWARD

Fetch is done in descending direction. Page-count starts from the most recent side of the result set.

BACKWARD

Fetch is done in ascending direction. Page-count starts from the oldest side of the result set.

Referenced By Representaions