Class PagingResultObjectProvider

java.lang.Object
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
org.apache.openjpa.jdbc.kernel.PagingResultObjectProvider
All Implemented Interfaces:
ResultObjectProvider, Closeable

public class PagingResultObjectProvider extends SelectResultObjectProvider
Object provider implementation that fetches one page of results at a a time as it scrolls. If the getPagedFields(org.apache.openjpa.jdbc.sql.Select, org.apache.openjpa.jdbc.meta.ClassMapping, org.apache.openjpa.jdbc.kernel.JDBCStore, org.apache.openjpa.jdbc.kernel.JDBCFetchConfiguration, int, long) method returns a non-null bit set, this this provider is a good fit for your configuration. The method tests the following conditions:
  • The eager fetch mode is parallel.
  • The select's result should be treated as a large result set.
  • The mapping being selected has fields that use parallel selects under the current fetch configuration.
To use this provider, select the candidate mapping with eager fetch mode set to join. This provider will take care of performing parallel mode batch selects for each page it reads.
Author:
Abe White