Package org.apache.openjpa.kernel
Class OrderingMergedResultObjectProvider
java.lang.Object
org.apache.openjpa.lib.rop.MergedResultObjectProvider
org.apache.openjpa.kernel.OrderingMergedResultObjectProvider
- All Implemented Interfaces:
ResultObjectProvider
,Closeable
Merged result object provider specialization that extracts ordering
values from results for comparison.
- Author:
- Abe White
-
Constructor Summary
ConstructorDescriptionOrderingMergedResultObjectProvider
(ResultObjectProvider[] rops, boolean[] asc, StoreQuery.Executor[] execs, StoreQuery q, Object[] params) OrderingMergedResultObjectProvider
(ResultObjectProvider[] rops, boolean[] asc, StoreQuery.Executor exec, StoreQuery q, Object[] params) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getOrderingValue
(Object val, int idx, ResultObjectProvider rop) Return the value to use for ordering on the given result value.Methods inherited from class org.apache.openjpa.lib.rop.MergedResultObjectProvider
absolute, close, getResultObject, handleCheckedException, next, open, reset, size, supportsRandomAccess
-
Constructor Details
-
OrderingMergedResultObjectProvider
public OrderingMergedResultObjectProvider(ResultObjectProvider[] rops, boolean[] asc, StoreQuery.Executor exec, StoreQuery q, Object[] params) -
OrderingMergedResultObjectProvider
public OrderingMergedResultObjectProvider(ResultObjectProvider[] rops, boolean[] asc, StoreQuery.Executor[] execs, StoreQuery q, Object[] params)
-
-
Method Details
-
getOrderingValue
Description copied from class:MergedResultObjectProvider
Return the value to use for ordering on the given result value. Returns the result value by default.- Overrides:
getOrderingValue
in classMergedResultObjectProvider
- Parameters:
val
- the result valueidx
- the index of the result object provider in the array given on construction that produced the result valuerop
- the result object provider that produced the result value
-