Package org.apache.openjpa.kernel
Class ResultPacker
java.lang.Object
org.apache.openjpa.kernel.ResultPacker
- Direct Known Subclasses:
ResultShapePacker
Helper class to pack results into the result class set on the query.
- Author:
- Abe White, Patrick Linskey
-
Constructor Summary
ModifierConstructorDescriptionprotected
Protected constructor to bypass this implementation but allow extension.ResultPacker
(Class<?>[] types, String[] aliases, Class<?> resultClass) Constructor for standard projection.ResultPacker
(Class<?> candidate, String alias, Class<?> resultClass) Constructor for result class without a projection. -
Method Summary
-
Constructor Details
-
ResultPacker
protected ResultPacker()Protected constructor to bypass this implementation but allow extension. -
ResultPacker
Constructor for result class without a projection. -
ResultPacker
Constructor for standard projection.- Parameters:
types
- the projection value typesaliases
- the alias for each projection valueresultClass
- the class to pack into
-
-
Method Details
-
pack
Pack the given object into an instance of the query's result class. -
pack
Pack the given array into an instance of the query's result class.
-